Description Usage Arguments Value Matching See Also
This function uses a list of regex to filter CJPG
and CJSG tables (only if they are of type "classes"
or
"subjects"
) more easily than with dplyr::select()
. For
details on how the matching occurs, see Matching.
1 |
table |
Table returned by |
patterns |
A list containing (at most) 6 character vectors
of one or more regular expressions (applied from left to right
on |
The original table filtered according to patterns
For the matching to work properly, patterns
should be a list of at most 6 character vectors, each one
containing either one or a vector of regular expressions to
be applied from left to right on columns name0
to name5
(note that vectors are ORed and different elements are ANDed).
Example: If patterns
looks something like
list(c("ADM", "CRIMINAL"), "", "", "", "", "Recurso")
,
then we'll get back the rows where name0
contains "ADM"
or "CRIMINAL" and where name5
contains "Recurso".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.