Designed to be used within Shiny applications. Allows a user to specify conditions (using R or dplyr syntax) to filter rows from a data frame or spatial (sf) data frame. This function uses dplyr's filter to conditionally subset rows.
Arguments
- filter_df
data frame or spatial (sf) data frame to apply condition and filter rows from.
- filter_conditions
a single element character vector specifying conditions used to subset rows from
filter_df. Conditions should be specified in R or dplyr syntax (e.g.column_1 == "xyz"will filter all rows fromfilter_dfwherecolumn_1has a value of"xyz").
Value
a data frame or spatial (sf) data frame containing the records
filtered from filter_df.