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 have to go thru.
-- View this message in context: http://r.789695.n4.nabble.com/error-for-ttest-tp3448056p3449792.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.