[R] t.test error

David Winsemius dwinsemius at comcast.net
Fri Aug 9 04:34:24 CEST 2013


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



More information about the R-help mailing list