search for: ra_80

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

Did you mean: ra80
2012 Dec 28
3
help with reshaping wide to long format
...gt; names(bp.sub)[grep("\\d+",names(bp.sub))]<-gsub("(\\D+)(\\d+)","\\1_\\2",names(bp.sub)[grep("\\d+",names(bp.sub))]) > > BP.stack2<-reshape(bp.sub,dir="long",varying=8:13,sep="_") > Bp.stack2 > CODEA C_45 ragek ra_80 ra_98 CBCLAggressionAt_1410 > 1.14 1 NA 3 4 1 NA > 2.14 3 2 3 3 1 0 > 3.14 4 2 3 6 1 NA > 4.14 7 2 4 6 1 0 > 5.14 8 2...