[R] How to convert matrix with frequency & variable to vector?
nanthinee
nanthineej at gmail.com
Fri Jul 8 06:24:49 CEST 2011
Hi,
I have a dataset:
freq x
1 30 7
3 70 8
4 100 7
5 22 6
6 250 10
How do I convert into vector form (v<- 7,7,7,8,8,8,6,6,6,6) all "x" with the
complete frequency? Transpose only does a single row but I want the full
frequencies not just the variable transposed.
Thanks,
Nanthinee
--
View this message in context: http://r.789695.n4.nabble.com/How-to-convert-matrix-with-frequency-variable-to-vector-tp3653196p3653196.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list