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-h...@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.
May be this help you.
trap$time<-factor(trap$time)
trap$block<-factor(trap$block)
All the best,
miltinho astronauta
brazil
[[alternative HTML version deleted]]
Thank you very much
Humberto Dutra
try
trap$time<-factor(trap$time)
trap$block<-factor(trap$block)
On 7/19/08, hpdutra <hpd...@yahoo.com> wrote:
>
>
> Hi everyone. I am trying to add a formula to my data using the
> groupedData
> function.
>
> 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"
>
>
--
View this message in context: http://www.nabble.com/wroung-groupedData-despite-reading-Bates-and-Pinheiro-3-times-tp18548213p18548416.html