Hi everybody,
 
When I followed a practice example, I got an error as follows:
########################################################################
#######################################
> cc<-read.table('example5_2.dat',header=TRUE)
> cc
  EXAM1 EXAM2 EXAM3 EXAM4 EXAM5
1    45    34    23    35    50
2    23    36    66    66    34
3    67    59    72    80    69
4    56    43    31    34    40
5    74    66    57    32    66
> mean(cc)
EXAM1 EXAM2 EXAM3 EXAM4 EXAM5 
 53.0  47.6  49.8  49.4  51.8 
> attach(cc)
> mean(EXAM1,EXAM2,EXAM3,EXAM4,EXAM5)
Error in mean.default(EXAM1, EXAM2, EXAM3, EXAM4, EXAM5) : 
        'trim' must be numeric of length one
In addition: Warning message:
the condition has length > 1 and only the first element will be used in:
if (na.rm) x <- x[!is.na(x)] 
Would anybody explain which caused this error, and how to modify it?
 
Thanks!
_____________________________________________
Dr.Ruixin ZHU
Shanghai Center for Bioinformation Technology
rxzhu@scbit.org
zhurx@mail.sioc.ac.cn
86-21-13040647832
 

	[[alternative HTML version deleted]]

