search for: dur2

Displaying 1 result from an estimated 1 matches for "dur2".

Did you mean: dup2
2006 Apr 26
1
help using tapply
Dear R-mates, # Here's what I am trying to do. I have a dataset like this: id = c(rep(1,8), rep(2,8)) dur1 <- c( 17,18,19,18,24,19,24,24 ) est1 <- c( rep(1,5), rep(2,3) ) dur2 <- c(1,1,3,4,8,12,13,14) est2 <- rep(1,8) mydata = data.frame(id, estat=c(est1, est2), durat=c(dur1, dur2)) # I want to one have this: id = c(rep(1,8), rep(2,8)) dur1 <- c( 17,18,19,20,28,1,2,3 ) est1 <- c( rep(1,5), rep(2,3) ) dur2 <- c(1,...