On Aug 8, 2013, at 6:09 PM, iza.ch1 wrote: > Hi > > I receive a very strange error message after trying to do t-test. When I > write the code t.test(x) I get an error message: error in t.test(x) : > function "sqr" not found > > I don't understand this problem. Can someone help me how to do it right?
Not unless you provide the code. I suspect you have written your own version of 't.test' and have overwritten the version that is from the stats package. It's possible to mask R functions. When you type: `t.test` do you see this? > t.test function (x, ...) UseMethod("t.test") <bytecode: 0x102c124a0> <environment: namespace:stats> -- David Winsemius 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.