search for: 731122

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

Did you mean: 31122
2012 Jul 25
1
reshaping data
Hi, I am trying to reshape data from a long to wide format but have a specific task that I cannot get to output properly. # SAMPLE DATA; id <- c(1,2,2,3,3,3) time <-c(0,0,5, 0, 2, 10) x <- rnorm(length(id)) long <- data.frame(id,time,x) # To reshape, I would like to exclude 'id' values that have NO duplicate (i.e., remove # id=1 in this case). My attempts failed because the