Description Usage Arguments Value Note Examples
View source: R/helper_functions.R
Table function: filter a df by column contains a list of specified values
1 | filterContain(df, column, value, verbose = F, ...)
|
df |
A data.frame to be filtered |
column |
(str) column to be filtered |
value |
(str list) a list of strs to match with the value column. If a match is found, the record is returned |
verbose |
[optional] (bool) print if a match is found, and how many records returned. default = F |
... |
more parameters in the grepl() function, eg. ignore.case = T |
A data.frame with matched records, including empty df if no match is found
only to match the full words in the list (if the value contains two or more, it is a match)
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.