Re: [R] error for ttest: solved

2011-04-14 Thread 1Rnwb
I knew that the "NA's" in my data were the root cause of the trouble, but did not find out how to get rid of them. Untill I found your another post mentioning to use 'na.omit' to remove the lines containing 'NA's" and the problem got fixed after that. Thanks for the help and all the trouble you hav

Re: [R] error for ttest

2011-04-14 Thread Dennis Murphy
Hi: It's hard to diagnose the problem without an illustrative example. Perhaps the following might help: (1) When writing a function to use in ddply(), make a generic data frame the input argument to the function and refer to the variables within the function either with the $ notation

[R] error for ttest

2011-04-13 Thread 1Rnwb
Hello all, I have arranged my data as per Dennis's suggestion in this post http://www.mail-archive.com/r-help@r-project.org/msg107156.html. the posted code works fine but when I try to apply it to my data, i get "> u2 <- ddply(xxm, .(plateid, cytokine), as.data.frame.function(f)) Error in t.test.f