Description Usage Arguments Value Author(s) References See Also Examples
View source: R/GetSampleFromDataFrame.R
Randomly select n
rows from data.frame x
.
1 | GetSampleFromDataFrame(n, x)
|
n |
numeric, size of sample. |
x |
data.frame, data whose rows will be sampled. |
data.frame, size n random subset of the rows of x
Stephen R. Haptonstahl srh@haptonstahl.org
https://github.com/shaptonstahl/
ScalablePCA
,
GetSampleFromFile
,
GetSampleFromFile
1 2 | data(iris) # provides example data
x <- dils:::GetSampleFromDataFrame(10, iris)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.