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.