browse_table: Browse table returned by 'cjpg_table()' or 'cjsg_table()'

Description Usage Arguments Value Matching See Also

View source: R/cjpg_table.R


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.


browse_table(table, patterns)



Table returned by cjpg_table() or cjsg_table() (only valid for "classes" or "subjects" types)


A list containing (at most) 6 character vectors of one or more regular expressions (applied from left to right on name0 to name5), e.g., list(c("ADM", "CRIMINAL"), "", "", "", "", "Recurso")


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".

See Also

cjpg_table(), cjsg_table()

jtrecenti/esaj documentation built on Feb. 11, 2019, 9:13 a.m.