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

Nicolas Paris niparisco at gmail.com
Thu Jan 5 09:29:55 CET 2017


Hello,

I d'like to shuffle row-wise, independently for each row :

> dt1
  a b c1 1 1 02 1 0 03 0 1 04 0 0 1

> dt1
  a b c1 1 0 12 0 1 03 0 1 04 1 0 0

Is there a data.table way to do so ?

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20170105/8f5d6dda/attachment.html>


More information about the datatable-help mailing list