Hi (sorry, I donĀ“t got your name) May be this help you.
trap$time<-factor(trap$time) trap$block<-factor(trap$block) All the best, miltinho astronauta brazil On 7/19/08, hpdutra <[EMAIL PROTECTED]> wrote: > > > 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@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. > [[alternative HTML version deleted]]
______________________________________________ R-help@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.