Skip to content
Prev 82432 / 398506 Next

'mean' and 'sd' calculations do not match

Hi

you see the differenc between factors and numbers.

columns with <NA> are factors
columns with NA ar numeric

you can see it by 

str(chemicS) which will reveal a structure of your data

So either change factors by
as.numric(as.character())

or read it with forcing columns to numeric

?read.table

HTH
Petr
On 8 Dec 2005 at 11:50, Ulrich Leopold wrote:
From:           	Ulrich Leopold <uleopold at science.uva.nl>
To:             	R-help <R-help at stat.math.ethz.ch>
Organization:   	University of Amsterdam
Date sent:      	Thu, 08 Dec 2005 11:50:25 +0100
Subject:        	[R] 'mean' and 'sd' calculations do not match
Petr Pikal
petr.pikal at precheza.cz