Re: [R] Problem with GroupedData

2009-07-14 Thread Kingsford Jones
Hi Fir, Are you sure data2 is a data frame? The error message suggests it isn't. Try class(data2) or str(data2) if you're not sure. On another note -- perhaps it's better to avoid using groupedData. I've used the nlme library for years without ever using the grouped structure. My opinion is th

[R] Problem with GroupedData

2009-07-14 Thread FMH
Hi,   I have an original data frame with 8 columns of variables, which are stored in 'data1' frame.   data1 <- read.csv("E:\\PHD GLASGOW UNIVERSITY\\Data\\R\\Colin\\Cailness21.csv") attach(data1) names(data1)   [1] "Date"   "d"  "m"  "y"  "Time"  [6] "Depth"  "

Re: [R] Problem with groupedData and lme

2009-07-03 Thread Dieter Menne
MUHC-Research wrote: > > > I'm currently having trouble with the implementation of a groupedData > object in the lme() function. > > Executing the following function >> applyScalingSimp <- function(input.population) >> { >> ## GA is a time value >> varInOrder <- c("GA","weigh

[R] Problem with groupedData and lme

2009-07-02 Thread Luc Villandre
Dear R-users, I'm currently having trouble with the implementation of a groupedData object in the lme() function. Executing the following function applyScalingSimp <- function(input.population) { ## GA is a time value varInOrder <- c("GA","weight","grouping","sex") mod