Hallo.
Could you please tell me if it is possible in R use something
like for-cycle or conditions with if and then.
I would need to index z from 0 to m and repeat some operations on each of them.
Could you please write me how can I do this?
Thank you very much
Barbora Kocurova
Vincent Deng wrote:
Hi,
I'm a new hand in R language. I have about 20 groups of data[x,y] and
want to plot them on a graph. To do this, I write a for-loop as
following: (some codes are omitted for simplicity)
for (i in c(1:20))
{
points(...,...,col=i)
lines(...,col=i)
}
The
Barbora Kocúrová wrote:
Hallo.
Could you please tell me if it is possible in R use something
like for-cycle or conditions with if and then.
I would need to index z from 0 to m and repeat some operations on each of
them.
Could you please write me how can I do this?
What about reading the
?Control
but there are alternative ways :
sapply(), apply(), lapply()...
ifelse()
etc.
Barbora Kocúrová a écrit :
Hallo.
Could you please tell me if it is possible in R use something
like for-cycle or conditions with if and then.
I would need to index z from 0 to m and repeat some operations
hadley wickham wrote:
(Under 2.2.0, Mac)
I have been unable to reduce this to a simple case, so I'll include my
full code, and my intentions. The problem I'm trying to solve is that
while many defaults (eg. na.rm=F, drop=T) make sense for interactive
programming, they tend to be a bit of a
I have recently used R in a statistical analysis and I need to use a
reference...
If you would be kind enough to help me I would be grateful!
P.S.Georgoulia
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
http://www.rpad.org/Rpad/R-refcard.pdf
I have recently used R in a statistical analysis and I need to use a
reference...
If you would be kind enough to help me I would be grateful!
P.S.Georgoulia
__
R-help@stat.math.ethz.ch mailing list
Παναγιωτα Γεωργουλια wrote:
I have recently used R in a statistical analysis and I need to use a
reference...
If you would be kind enough to help me I would be grateful!
Please read either the message at the very beginning of your R session,
the R FAQ, or ...
and type:
citation()
Uwe
Hello,
I would like to learn how to create a pdf and a postscript file from an R
graphic.
For example, I tried :
plot(1) # example
pdf(H:/Perso/essai.pdf)
postscript(H:/Perso/essai.ps)
But the pdf document created is empty.
How do these functions work ?
Thank you
You need to open the pdf/poscript first and then plot...see ?postscript
# open the file foo.ps for graphics output
postscript(foo.ps)
# produce the desired graph(s)
dev.off() # turn off the postscript device
David Hajage wrote:
Hello,
I would like
David Hajage wrote:
Hello,
I would like to learn how to create a pdf and a postscript file from an R
graphic.
For example, I tried :
plot(1) # example
pdf(H:/Perso/essai.pdf)
You opened a device, say A.
postscript(H:/Perso/essai.ps)
You opened another
... I'm so stupid !
Thank you very much.
David Hajage
Interne de santé publique
Institut Curie
2005/12/27, Ronnie Babigumira [EMAIL PROTECTED]:
You need to open the pdf/poscript first and then plot...see ?postscript
# open the file foo.ps for graphics output
postscript(foo.ps)
Not at all...on the contrary, these are common slips as one is getting started
and they can be nerve wrecking (I have
only been using R for a month and I have had my fair share of them). Be sure to
make RSiteSearch a good friend, very
helpful.
Happy new year
David Hajage wrote:
... I'm so
Dear Uwe,
Sorry, I did not describe my question clearly. I created a matrix to
store color code using rgb function.
abc = rgb(6:36,0,0,maxColorValue = 255)
And after running codes like this
for (i in c(1:20))
{
points(...,...,col=abc[i])
lines(...,col=abc[i])
}
R still used 8 colors of
Vincent Deng wrote:
Dear Uwe,
Sorry, I did not describe my question clearly. I created a matrix to
store color code using rgb function.
abc = rgb(6:36,0,0,maxColorValue = 255)
And after running codes like this
for (i in c(1:20))
{
points(...,...,col=abc[i])
Is Barbara asking a much more basic question that is really RTFM?
Apart from the apply family of commands, the S language as implemented in
R includes a lot of looping:
m-3
for (z in 0:m){
if(z0){
cat(z non-zero\n)
}else{
cat(z is zero\n)
Ronnie Babigumira skrev:
Hi, I have done a search on this in vain. How can I add a note to the foot of
a graph example below
Can you use this?:
plot(1:10, 1:10, main = Maintitle, sub = subtitle) mtext(Another
possibillity, side=4)
|---|
| Title |
Closer to what Ronnie needs is:
plot(1:10, 1:10, main = Title)
mtext(Note: source,side=1,line=4,adj=0)
The line number may need adjustment.
Best wishes
John
John Logsdon Try to make things as simple
Quantex Research Ltd, Manchester UK as possible but not
Many thanks John.
John Logsdon wrote:
Closer to what Ronnie needs is:
plot(1:10, 1:10, main = Title)
mtext(Note: source,side=1,line=4,adj=0)
The line number may need adjustment.
Best wishes
John
John Logsdon Try to make things as simple
Quantex
I installed the latest R-package R-2.1.1-1.rh4AS.i686.rpm on a Red Hat
Desktop 4 (RH EL4) machine. When I try to get help by the help.start()
command an error message appears:
-
help.start()
Making links in per-session dir ...
If '/usr/bin/mozilla' is already running, it is *not* restarted,
Andreas Zocher [EMAIL PROTECTED] writes:
I installed the latest R-package R-2.1.1-1.rh4AS.i686.rpm on a Red Hat
Desktop 4 (RH EL4) machine. When I try to get help by the help.start()
command an error message appears:
-
help.start()
Making links in per-session dir ...
If
On Tue, 27 Dec 2005, Peter Dalgaard wrote:
Andreas Zocher [EMAIL PROTECTED] writes:
I installed the latest R-package R-2.1.1-1.rh4AS.i686.rpm on a Red Hat
Desktop 4 (RH EL4) machine. When I try to get help by the help.start()
command an error message appears:
-
help.start()
Making
citation()
On 27-Dec-05, at 2:41 AM, Παναγιωτα Γεωργουλια wrote:
I have recently used R in a statistical analysis and I need to use a
reference...
If you would be kind enough to help me I would be grateful!
P.S.Georgoulia
__
The slider function in the TeachingDemos and relax packages (same
function is in both packages you can use either) provides a way to do
this using a Tk window. There are also several functions in the
TechingDemos package that use a lower level interface to a Tk window
that you can look at their
Dear listers,
glmmPQL (package MASS) is given to work by repeated call to lme. In the
classical outputs glmmPQL the Variance Structure is given as fixed
weights, Formula: ~invwt. The script shows that the function
varFixed() is used, though the place where 'invwt' is defined remains
Thanks a lot to all of your responses, I did follow your adivces, but
finnally to really get it understanded I acctually did the work to
calculate the anova step by step on an excel spread sheet to see if I
get the same SS and MS as is aov output, and yes, they are the same, so
John you are right
Hi all,
I encountered this problem with parameterization in R:
I have two factors in a regression. how about if I want to
set constraint so that for each factor, the sum of their
coefficients equals to zero(instead of choosing a reference
category)? for example, I have factor(variable) A(with
?contr.sum
And Chapter 6 of MASS would have explained all this to you, so if you have
further questions please consult it.
On Tue, 27 Dec 2005, Oana Mocila wrote:
I encountered this problem with parameterization in R:
I have two factors in a regression. how about if I want to
set
If you are not familiar with MASS (Modern Applied Statistics with S,
4th ed, Venables and Ripley 2002, Springer), I can assure you it is an
excellent reference for learning R. There are many books on R that I
have not read, but among the books in my personal library, I refer to
MASS
Dear R People:
Please excuse the off topic question.
What are the dimensions of A-4 Paper, please?
Actually, the question should read, how do I set up a LaTex file
to fix A-4 paper, please?
Thanks much!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical
On Tue, 2005-12-27 at 16:16 -0600, Erin Hodgess wrote:
Dear R People:
Please excuse the off topic question.
What are the dimensions of A-4 Paper, please?
Actually, the question should read, how do I set up a LaTex file
to fix A-4 paper, please?
Thanks much!
Set the documentclass in
Ravi, Duncan, and Matthias,
Thank you very much for the helpful replies. For convolutions with 2 or
3 copies, I found that the CDFs from the distr package closely match the
analytic results from this paper:
K. Singh, M. Xie, and W. E. Strawderman, Combining Information From
Independent Sources
Hi,
Thanks for your kindly reply.
I think maybe I didn't specify color codes properly. That is,the
difference between each color is not sharp enough for me to identify
them as different colors.
So can you tell me about how to specify the color properly so that the
difference among each color can
Hi,
I have the following problem which I would appreciate some help on.
A variable y is to be modelled as a function of a set of variables
Vector(x).
The twist is that there is another variable z in the problem with the
property that y(i) = z(i).
So the data set is divided into three
It might be hard to differentiate between each color with having 255 of
them. Here is an example of using ColorRampPalette to create a set of
colors. You can experiment with as many differing ones as you want to to
get the difference that you want:
# use 5 colors to create a sequence (you can
Hello anyone,
I'm trying to install R on Mandriva 2006 distribution via rpm file with the
line
urpmi R-2.0.0-1mdk.i586.rpm
but I got an error message saying that the file is not accessible due to some
info problem.
I also tried with a source code in R-2.1.1.tar but I think that there is
Does anyone know if there is a package or other method of reading Genstat
files directly into R. Genstat isn't listed in the foreign package.
Many thanks,
Graham
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
37 matches
Mail list logo