Description Usage Arguments Value
This function downsamples an input data.frame
, so that for each value of col.name
, there are
at most size
rows.
1 | downsample_by(tab, col.name, size)
|
tab |
Input |
col.name |
The name of a column in tab (typically the data in the column should either be characters or factors).
For each value of |
size |
The number of rows to select for each value of |
Returns a data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.