Description Usage Arguments Value Author(s) Examples
This function has been designed to sample from the rows of a two dimensional data set, returning all columns of sampled rows.
1 | sampleFromData(data, size, replace = TRUE, ...)
|
data |
A data frame or matrix from which rows are to be sampled |
size |
Numeric. Number of rows to return |
replace |
Logical. Sample with replacement? TRUE by default. |
... |
Extra options passed to |
A data set of the same type as input with size
rows.
Doug Ashton
1 | sampleFromData(airquality, size=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.