takeSubset | R Documentation |
Function for taking a random subset of the data. Used for top-down selection in model fitting to speed up processes. This creates a representative sample across fields and years if they're present.
takeSubset(x, respvar, sub_n = 1250)
x |
data.frame or data.table. |
respvar |
Character, the response variable column name. |
sub_n |
Numeric, the number of random observations to take. |
A random subset of the data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.