Description Usage Arguments Value
View source: R/chooseNrandom.R
Takes N random rows from a data table. If grouping column provided, sampling is performed by group.
1 | chooseNrandom(in.dt, in.n, in.col.id, in.col.group)
|
in.dt |
Input data table |
in.n |
Number of rows to sample |
in.col.id |
Name of the column with unique row id's |
in.col.group |
Name of the grouping column |
Data table with sampled rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.