On Aug 30, 2012, at 4:02 AM, andyspeak wrote:
Hello
Thankyou for the help.

kruskal.test(Temp, Roof) is simple but just returns one result for the
whole temperature dataset organised by roof.

I want to compare the Temp data for each Roof in each Month. So because i have temperature data on the three roofs for 16 different months then i want
16 separate kruskal.test results.,

lapply( split(dfrm, dfrm$Month), function(xfrm) {
                 kruskal.test(xfrm[["Temp"]], xfrm[["Roof"]] }

Notice that I used an assumed name for the dataframe. You have apparently been following unwise advice to use attach. You would be advised to disregard that advice.
--

David Winsemius, MD
Alameda, CA, USA

______________________________________________
R-help@r-project.org 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-contained, reproducible code.

Reply via email to