safeSubset | R Documentation |
takes potentially unsafe row and column filters and evals them in the context of the dataframe. It takes the following precautions: * it takes a snapshot of all the envirnoments before the execution and deletes any new objects it finds after the execution * it locks all environments before the execution, so no existing object can be modified
safeSubset(df, row.filter = TRUE, col.filter = TRUE)
df |
a dataframe |
row.filter |
a character, the filter for rows (as in '[') |
col.filter |
a character, the filter for columns (as in '[') |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.