subset_dataframe | R Documentation |
Subset data frame to the rows and/or columns specified
subset_dataframe(df, rows_to_keep = NULL, cols_to_keep = NULL)
df |
The data frame or matrix to subset |
rows_to_keep |
Numeric, logical or character vectors of rows to keep in subset. Note: character for named rows only |
cols_to_keep |
Numeric, logical or character vectors of columns to keep in subset. Note: character for named columns only |
A data frame subsetted to specified rows/columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.