Luke
Check
?colMeans or help(colMeans)
you will see there is an agrument, na.rm, which by default is FALSE -
you need to set it to TRUE.
Peter Alspach
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Luke Neraas
> Sent: Tuesday, 27 November 200
colMeans(X,na.rm=T)
?colMeans
2007/11/27, Luke Neraas <[EMAIL PROTECTED]>:
> # Hello,
>
> # I have a matrix that contains some missing values denoted by NA.
> # I would like to calculate the mean for each column and not have the
> # NA values included. here is a sample matrix "X" below.
>
>
>
2 matches
Mail list logo