filter_table | R Documentation |
Subset table to exclude rows/columns that match a specific value.
filter_table(data, dimension, by, pattern, trim_whitespace = T)
data |
Data frame to subset. |
dimension |
The dimension from which to pull values for matching. '1' for rows and '2' for columns. The dimension not specified is the one that will be reduced in length. |
by |
The row/column name or index to use to pull values for matching. |
pattern |
The pattern to match against. Can be any fixed string, |
trim_whitespace |
If |
Uses a user-specified row or column to find matches to a user-specified value. For matches on a row, corresponding columns are removed. For matches on a column, corresponding rows are removed.
A data frame with one of the dimensions reduced to exclude rows/columns that match against the user-specified value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.