Description Usage Arguments Value Author(s) See Also Examples
View source: R/sampleColumns.R
Returns a random subset of columns of a data-frame or matrix
1 | sampleColumns(origData, Seed = 1, sampleSize, replaceBoolean = FALSE)
|
origData |
A |
Seed |
To randomize, specify any Seed you desire |
sampleSize |
The number of columns to sample, from the original dataset |
replaceBoolean |
Whether to sample with replacement or not. Default is |
Returns an object of same type as original dataset, with sampled columns
Subhrangshu Nandi, PhD Statistics, UW Madison; snandi@wisc.edu or nands31@gmail.com
1 2 | data( LifeCycleSavings )
sampleRows( LifeCycleSavings, Seed = 1, sampleSize = 10, FALSE )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.