[R] error: could not find function "sd"

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Sep 16 15:07:25 CEST 2009



Ben Bolker wrote:
> 
> 
> sselamat wrote:
>> Hi, 
>> Everytime I try to get the standard deviation of a vector and enter
>> command of sd(x), i get a reply
>> Error: could not find function "sd"
>> Can someone help me please?
>> Thanks. 
>>
>>
> 
> Hmmm.  Please provide more information, it's hard to imagine how this could
> happen.
> Results of sessionInfo() ???
> 
>  Here's the only way I could get this to happen:
> 
>> find("sd")
> [1] "package:stats"
>> detach("package:stats")
>> sd(1)
> Error: could not find function "sd"


Or if you start R by specifying that stats is not among the default 
packages.

Anyway, I guess it is a broken installation and re-installing will fix it.

Uwe Ligges




More information about the R-help mailing list