[R] re shaping a data frame with multiple IDs

2009-03-08 Thread Christian Pilger
Dear R-experts, I have the following "long" data frame: ID <- c("ID001","ID001","ID001","ID001","ID001","ID001","ID001","ID001","ID001","ID001","ID001","ID002","ID002","ID002","ID002","ID002","ID002","ID002") Var <- c("Var001","Var001","Var001","Var001","Var001","Var002","Var002","Var

[R] Table Transformation

2009-03-04 Thread Christian Pilger
Dear R-experts, recently, I started to discover the world of R. I came across a problem, that I was unable to solve by myself (including searches in R-help, etc.) I have a flat table similar to key1key2value1 abcd_1 BP 10 abcd_1 BSMP1A abcd_1 PD 25 abcd_2 BP 20 a