Rdocumentation
powered by
Learn R Programming
SciencesPo (version 1.02.12)
rowSample: Row Sample
Description
Sample rows of a data object.
Usage
rowSample(.data, n)
Arguments
.data
the data object.
n
the number of items to choose from.
encoding
UTF-8
Examples
Run this code
rowSample(iris,
20
)
Run the code above in your browser using
DataLab