Skip to content
Prev 82433 / 398506 Next

'mean' and 'sd' calculations do not match

Ulrich Leopold <uleopold at science.uva.nl> writes:
You're using na.rm=TRUE on the sd calculation, but not on the means!
(The NA's generated for sd are likely groups with only one observation).
No. It signifies a problem, but not this one. The <NA> is used for
factor and character columns. Most likely (can't think of any other
reason) some of your data are not numeric - "," instead of "." and
similar typos will do that to you.