Re: [R] Where is the error

2008-09-14 Thread Nicky Chorley
-- > Error in if (0 < P[id]) print("ss") else print("ss") : > argument is of length zero Arrays/vectors/matrices in R are indexed from 1, not 0. Regards, Nicky Chorley __ R-help@r-project.org mailing lis

Re: [R] ON MAC, how to copy a plot on to Word document?

2008-09-07 Thread Nicky Chorley
e on the > Internet... The obvious way would be to save it as a PNG/JPEG/BMP/TIFF and then just import it. Regards, Nicky Chorley __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] I don't know how to run a r-code written in emacs

2008-09-06 Thread Nicky Chorley
: R < foo.R, where foo.R is the name of the script. The man page for R suggests this usage (admittedly, though, it's perhaps not obvious) and there are options listed in it that you may want to use. For what it's worth, it makes no difference which edit

Re: [R] need some help on r

2008-08-29 Thread Nicky Chorley
8/08 00:00:12) 50.20 > > 4104 312 37367 (08/28/08 00:00:17) 50.20 > > I want to retrieve 50.20 records > > How can I get ? > A quick subset appears to do what you want: subset(Tdf, sn.rnc == 50.20) For more info: ? subset and you may want to look

Re: [R] add to vector without duplicatation

2008-08-28 Thread Nicky Chorley
2008/8/28 Yuan Jian <[EMAIL PROTECTED]>: > Hi, > > I try to add items to a vector, but when the it has existed, the item should > be skipped. > does anyone know how to do it a simple way? You might be able to use unique(). Re

Re: [R] Finding a probability

2008-08-27 Thread Nicky Chorley
2008/8/27 Nicky Chorley <[EMAIL PROTECTED]>: > 2008/8/27 rr400 <[EMAIL PROTECTED]>: >> >> Thank you so much, at least i got that part right. But what is the meaning of >> the e-11 at the end?? > > Exponential notation. It means 10^-11. > Sorry, I realis

Re: [R] Finding a probability

2008-08-27 Thread Nicky Chorley
2008/8/27 rr400 <[EMAIL PROTECTED]>: > > Thank you so much, at least i got that part right. But what is the meaning of > the e-11 at the end?? Exponential notation. It means 10^-11. Regards, Nicky Chorley __ R-help@r-project.org mai

Re: [R] Error producing density curve

2008-08-26 Thread Nicky Chorley
2008/8/27 Nicky Chorley <[EMAIL PROTECTED]>: > 2008/8/27 rr400 <[EMAIL PROTECTED]>: >> >> Hi, i have never really used R before and i need to produce a density curve >> for use in an assignment. Following the instructions in the manual provided >> with my c

Re: [R] Error producing density curve

2008-08-26 Thread Nicky Chorley
type, ...) : invalid plot type '1'" > > The commands i have entered are: >>x=seq(0, 1800, 10) >>x >>f=dnorm(x, 1454.190, 162.6301) >>f >>plot(x,f,type='1') It's probably a lowercase L, not a 1 (to plot lines rather than points).

Re: [R] Positioning of axis titles

2008-08-21 Thread Nicky Chorley
To all: Thank you for your suggestions for help with this. I've not yet had a chance to investigate these things yet, but will do so soon! Again, thanks for the suggestions. Nicky Chorley __ R-help@r-project.org mailing list https://stat.et

Re: [R] Positioning of axis titles

2008-08-20 Thread Nicky Chorley
2008/8/20 Uwe Ligges <[EMAIL PROTECTED]>: > Increase the margins as well, default is: > par("mar"=c(5,4,4,1)+.1) > > Uwe Ligges > Thanks very much. One further question: is it possible to change the position of only one axis title (since using mgp changes both)

[R] Positioning of axis titles

2008-08-20 Thread Nicky Chorley
less space in the window, so I can hopefully change mgp and sort the problem. Is changing mgp the only way to position axis titles/labels? Regards, Nicky Chorley __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA