Re: [R] NPMC

From: Peter Ehlers <ehlers_at_ucalgary.ca>
Date: Mon, 14 Jun 2010 20:47:11 -0600

On 2010-06-14 13:25, Moimt wrote:
>
> HI,
> I am a new user of R and want to analyse some data using npmc. My data have
> several levels of factor (Site, Year and Season) and several variable
> (Percentages).
> I have tried to use npmc but I always get an error message. My data are in a
> table following this example:
>
> Site YEar Season Var1 Var2 ....
> A 2009 Dry 10 56
> B ........
>
> here is the error message I get: Erreur dans as.vector(x, mode) : argument
> 'mode' incorrect.
>
> How should I use the npmc formula?
>
> Thank you for your help

What do you mean by "data are in a table"? Is this a data.frame (as required by npmc)?

I think that npmc can only handle one numerical and one categorical variable and they must be named "var" and "class".

   -Peter Ehlers



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 15 Jun 2010 - 02:50:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 Jun 2010 - 13:20:34 GMT.

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

list of date sections of archive