random_cells | R Documentation |
This function takes a matrix or data frame as input and randomly samples columns
random_cells(df, n)
df |
Data frame or matrix. |
n |
Number of cells to sample. |
Matrix or data frame of n randomly sampled rows
## Not run:
df <- matrix(1:1000, 500, 20)
sub_df <- random_cells(
df = df,
n = 20
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.