[datatable-help] Shuffle row-wise, column independently

banded08 david.awam.jansen at gmail.com
Thu Jan 5 14:20:14 CET 2017


Maybe not the fastest of most efficient, but this should work 

for(ii in 1:dim(dt1)[1]) set(dt1, ii, 1:dim(dt1)[2] ,sample(dt1[ii]))



--
View this message in context: http://r.789695.n4.nabble.com/Shuffle-row-wise-column-independently-tp4727865p4727871.html
Sent from the datatable-help mailing list archive at Nabble.com.


More information about the datatable-help mailing list