Displaying 1 result from an estimated 1 matches for "cpdid".
Did you mean:
cmdid
2007 Mar 07
5
how to "apply" functions to unbalanced data in long format by factors......cant get "by" or "aggregate" to work
...t to avoid recreating the table from scratch with many commands
like the series below. I will have to perform this operation on many
different data sets some, with many more factors then this example.
### help me learn to use an apply or other command that will do the
following #####
m0<-mydata$cpdID[mydata$time=="24hr" & mydata$treatment=="control" &
mydata$expREP=="expREP1" & mydata$techREP=="techREP1"]
m1<-mydata$Y[mydata$time=="24hr" & mydata$treatment=="control" &
mydata$expREP=="expREP1" & myd...