View source: R/fct_filter_rows.R
filter_rows | R Documentation |
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.
filter_rows(filter_df, filter_conditions)
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 |
a data frame or spatial (sf) data frame containing the records
filtered from filter_df
.
The following are example operations that can used to test conditions to filter rows from a data frame:
* ==
, >
, >=
,
* &
, |
, !
,
* is.na()
See filter for more information and examples on filtering rows from a data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.