[R] problems with simple statistical procedures

Uwe Ligges ligges at statistik.uni-dortmund.de
Sun Jul 2 14:57:50 CEST 2006


Thomas Preuth wrote:
> Hello,
> 
> I use an imported dataframe and want to extract the mean value for one 
> column.
> after typing "mean (rae.df$VOL_DEP)" I receive
> "[1] NA
> Warning message:
> Argument ist weder numerisch noch boolesch: gebe NA zurück in: 
> mean.default("rae.df$POINT_Y_CH") "

Well,
   rae.df$VOL_DEP != "rae.df$POINT_Y_CH"

I think this is really strange. Are you sure this is the exact call and 
its output? If so, please tell us the output of
   str(rae.df)

Uwe Ligges




> But when i look into the dataframe the column is characterized as numeric.
> 
> Sorry for bothering but as a complete newbie I just cannot halp myself.
> 
> Greetings,
> thomas
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



More information about the R-help mailing list