Hi all, 

I'm wondering if any of you are aware of a package that allows users to
transform a data table from:

Data Name    #
A                  3
B                  2

to:

Data Name    #
A                  1
A                  1
A                  1
B                  1
B                  1


I've tried using the table2df function in the psych() package but that
doesn't yield the results i'm interested in; I'm essentially interested in
turning a row with a value of X, into X number of rows with value of 1 for
said category.


Thanks,
Marco. 






--
Sent from: http://r.789695.n4.nabble.com/datatable-help-f2315188.html
_______________________________________________
datatable-help mailing list
datatable-help@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help

Reply via email to