[R] Extract complete rows by group and maximum

2011-04-28 Thread Sandy Small
the whole line so that I can get a dataframe with all the data for the maximum line? (dput output from first 5 rows of my actual dataframe follows) Any help would be much appreciated. Thanks in advance Sandy Small structure(list(cvd_basestudy = c(study1, study2, study2, study3, study3), ecd_rhythm

[R] Finding the dominant factor in an unbalanced group

2011-02-02 Thread Sandy Small
, 212L, 346L, 223L, 178L, 231L, 244L, 277L, 388L, 254L), bl = c(142L, 288L, 284L, 191L, 144L, 360L, 147L, 184L, 164L, 186L)), .Names = c(basestudy, tl, tr, br, bl), row.names = c(NA, 10L), class = data.frame) Many thanks -- Sandy Small Clinical Physicist NHS Greater Glasgow and Clyde and NHS Forth

Re: [R] ggplot2, geom_hline and facet_grid

2011-01-20 Thread Sandy Small
Sandy Small From: [3]h.wick...@gmail.com [[4]h.wick...@gmail.com] On Behalf Of Hadley Wickham [[5]had...@rice.edu] Sent: 19 January 2011 15:11 To: Small Sandy (NHS Greater Glasgow Clyde) Cc: [6]r-help@r-project.org

Re: [R] ggplot2, geom_hline and facet_grid

2011-01-19 Thread Sandy Small
difference if I get the mean and difference separately. Can anyone explain this and tell me how to avoid it (and why does it work with the Diamonds data set? Any help much appreciated - thanks. Sandy Sandy Small Clinical Physicist NHS Forth Valley

[R] Comparing samples with widely different uncertainties

2010-08-25 Thread Sandy Small
a difference but it cannot include that uncertainty data). Can anybody suggest what I should be looking at? Is there a language here that I don't know? How do I do it in R? Many thanks for your help Sandy -- Sandy Small Clinical Physicist NHS Greater Glasgow and Clyde and NHS Forth Valley Phone

Re: [R] Plotting ordered nominal data

2008-08-04 Thread Sandy Small
value. For an example of when it might matter, try length(c(1,2,NULL,3)) #versus length(c(1,2,NA,3)) Steve E Sandy Small [1][EMAIL PROTECTED] 01/08/2008 16:21:29 Hi I'm sure this question has been asked before but I can't find it in the archives. I want to plot them in the order Normal

[R] Plotting ordered nominal data

2008-08-01 Thread Sandy Small
Hi I'm sure this question has been asked before but I can't find it in the archives. I have a data frame which includes interval and ordered nominal results. It looks something like Measured Eyeball 46.5 Normal 43.5 Mild 56.2 Normal 41.1 Mild 37.8 Moderate 12.6 Severe 17.3

[R] Normalizing grouped data in a data frame

2007-11-09 Thread Sandy Small
be very grateful. Sandy Small NHS Glasgow, UK ** This message may contain confidential and privileged information. If you are not the intended recipient please accept our apologies. Please do not disclose, copy or distribute

Re: [R] Normalizing grouped data in a data frame

2007-11-09 Thread Sandy Small
Thank you very much. That works nicely. The trick I particularly needed was withinwhich I didn't know about. Also nice to get a data frame out with sparseby instead of just a mulit-array with by Sandy Duncan Murdoch wrote: Sandy Small wrote: Hi I am a newbie to R but have tried a number