[R] factor documentation issue

2007-02-27 Thread Geoff Russell
(f) [1] 1 2 3 as.numeric(levels(f))[f] [1] 1 5 6 Is the documentation wrong, or is the code wrong, or have I missed something? Cheers, Geoff Russell __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] Metapost device driver

2007-02-05 Thread Geoff Russell
special significance? Cheers, Geoff Russell. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

[R] What determines the order of rows in a lattice barchart?

2006-10-28 Thread Geoff Russell
Hi, What determines the order of the rows in a barchart? Cheers, Geoff. Here is my code, and the data follows. If I have z in alpha order, the barchart is in some order I can't determine. I originally tried rownames(twater)~twater$Cat, but the chart wasn't in rownames(twater) order either.

Re: [R] barcharts with 2 different axes

2006-10-27 Thread Geoff Russell
Hi Deepayan, On 10/27/06, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 10/26/06, Geoff Russell [EMAIL PROTECTED] wrote: Dear UseRs, I'm having trouble drawing a barchart with 2 quantities in different units as follows with one unit on the top axis and the other unit

[R] barcharts with 2 different axes

2006-10-26 Thread Geoff Russell
Row 2 Tonnes1 | x Row 2 Litres1 | y Litres|. . . Can anybody provide an example please? Cheers, Geoff Russell [[alternative HTML version deleted

[R] Key colour problem with lattice plot

2006-10-22 Thread Geoff Russell
(rownames(example)~example$LandFill+example$Ruminants,type=c(p,h), key=list(text=list(c(Landfill,Enteric Fermentation)), rectangles=Rows(trellis.par.get(superpose.symbol),c(1,2)) Cheers, Geoff Russell __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Key colour problem with lattice plot

2006-10-22 Thread Geoff Russell
Thanks Deepayan, On 10/23/06, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 10/22/06, Geoff Russell [EMAIL PROTECTED] wrote: Many thanks Deepayan, .. I'm not sure what you mean by that, but my intention in pointing you towards show.settings() was to make you realize that you should

[R] Stats question - cox proportional hazards adjustments

2006-09-20 Thread Geoff Russell
risk factors then why does it make sense to adjust for gender? I would think that in this case some of the risk that should be properly attributed to the bad habits will actually end up being attributed to being male instead. Cheers, Geoff Russell __ R

Re: [R] Stats question - cox proportional hazards adjustments

2006-09-20 Thread Geoff Russell
On 20 Sep 2006 14:47:00 +0200, Peter Dalgaard [EMAIL PROTECTED] wrote: Geoff Russell [EMAIL PROTECTED] writes: Hi useRs, Many studies of the link between red meat and colorectal cancer use Cox proportional hazards with (among other things) a gender covariate. If it is true

Re: [R] Reading a file in R

2006-09-19 Thread Geoff Russell
to explicitly set the character set during the save if the file had unicode on input. Cheers, Geoff Russell __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

[R] Table manipulation question

2006-09-14 Thread Geoff Russell
5.6 RowName22 NA I'm thinking of something like: T1$C2=T2$C2[index-expression-to-pullout the matching ones] Any ideas would be appreciated. Cheers, Geoff Russell [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch

[R] Running cox models

2006-09-03 Thread Geoff Russell
. Has anybody else used this dataset? Cheers, Geoff Russell __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal

[R] Frequency tables without underlying data

2006-08-31 Thread Geoff Russell
still make a frequency table? Cheers, Geoff Russell [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting