A wrapper around dplyr::filter. Select rows from an
annotation table using tidy grammar.
Usage
filter_records(where = wherever(A > 0), ...)Arguments
- where
(quosures) A list of
rlang::quosurefor evaluation e.g. A>10 willselect all rows where the values in column A are greater than10. A helper functionwhereveris provided to generatea suitable list of quosures. The default iswherever(A > 0).- ...
Additional slots and values passed to
struct_class.
Value
A filter_records object with the following
output slots:
updated | (annotation_source) The updated annotations as an
annotation_source object. |
Inheritance
A filter_records object inherits the following struct classes:
[filter_records] -> [model] -> [struct_class]
References
Wickham H, François R, Henry L, Müller K, Vaughan D (2023). dplyr: A Grammar of Data Manipulation. R package version 1.1.4, https://CRAN.R-project.org/package=dplyr.
Henry L, Wickham H (2024). rlang: Functions for Base Types and Core R and 'Tidyverse' Features. R package version 1.1.3, https://CRAN.R-project.org/package=rlang.
Examples
M <- filter_records(
where = wherever(A>10))