[R] wroung groupedData despite reading Bates and Pinheiro 3 times

From: hpdutra <hpdutra_at_yahoo.com>
Date: Sat, 19 Jul 2008 13:02:49 -0700 (PDT)

Hi everyone. I am trying to add a formula to my data using the groupedData function.
My experiment consists of randomized block design using fruits, vegetation and time as factors. The idea is to see if fruits, vegetation and time explain the abundance of mice. I am using tree density as a covariate. So I tried to fit the following structure to my data.
> traps<-groupedData(mice~tree|plotID,outer=~time*fruit*veget|block,data=trap)

but time and block are still considered to be numeric, while in fact they should be factor and ordered, respectively.
> sapply(traps,data.class)

     mice plotID veget fruit time block tree "numeric" "ordered" "factor" "factor" "numeric" "numeric" "numeric"

Is there a way to change that?

Thank you very much.

PS: the levels for fruit and veget are intact or removed

-- 
View this message in context: http://www.nabble.com/wroung-groupedData-despite-reading-Bates-and-Pinheiro-3-times-tp18548213p18548213.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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 Sat 19 Jul 2008 - 20:06:15 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 Sat 19 Jul 2008 - 21:32:43 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