GetSampleFromDataFrame: Randomly select rows from a data.frame.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/GetSampleFromDataFrame.R

Description

Randomly select n rows from data.frame x.

Usage

1

Arguments

n

numeric, size of sample.

x

data.frame, data whose rows will be sampled.

Value

data.frame, size n random subset of the rows of x

Author(s)

Stephen R. Haptonstahl srh@haptonstahl.org

References

https://github.com/shaptonstahl/

See Also

ScalablePCA, GetSampleFromFile, GetSampleFromFile

Examples

1
2
data(iris)   # provides example data
x <- dils:::GetSampleFromDataFrame(10, iris)

dils documentation built on May 2, 2019, 8:28 a.m.