View source: R/visualisation.r
subsetByPattern | R Documentation |
Subset a data frame based on string pattern matching on one of its character columns. Uses the function str_detect
subsetByPattern(x, colname, pattern)
x |
the data frame |
colname |
column name |
pattern |
a pattern suitable for use by |
a data frame. Unnecessary levels have been dropped from factor columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.