A wrapper for sample.int and extract that makes it easy to quickly sample rows from any object, including Matrix and sparse matrix objects.
sample.int
extract
Useful links