Extract or remove rows from prepared data.
filter_rows.Rd
Extract or remove rows from prepared data.
Usage
filter_rows(
plot_dat,
column_name,
subsetter,
list_elements = c("plot_points", "plot_lines", "plot_braces"),
remove = FALSE,
remove_na = FALSE
)
Arguments
- plot_dat
List of data.frames, output of prep_plot.
- column_name
Column that the subsetter will be searched in.
- subsetter
Character string of the state you want to extract or remove.
- list_elements
Character vector with the names of the list objects you want to filter in. Defaults to
c("plot_lines", "plot_points", "plot_background_lines", "plot_braces")
.- remove
Logical. If
TRUE
, the state defined instate
will be removed. Defaults toFALSE
.- remove_na
Logical. If
TRUE
, rows withNAs
incolumn_name
will be removed.