Description Usage Arguments Value See Also Examples
Validates that the number of columns is equal to expected count If object row count exceeds supplied parameter or default value, then the function returns a random sample of "n" rows. If object row count is less than parameter or default, the function returns all rows of the object.
1 | RowSample(x, n = 5)
|
x |
a matrix-like R object |
n |
the number of random rows to display |
A dataframe
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.