Re: [R] problems with simple statistical procedures

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Sun 02 Jul 2006 - 22:57:50 EST

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@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



R-help@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 Received on Sun Jul 02 23:00:09 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 03 Jul 2006 - 00:15:12 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.