| dplyr_extensions {rmdl} | R Documentation |
Extending dplyr for tm class
Description
The filter() function extension subsets tm that satisfy set conditions.
To be retained, the tm object must produce a value of TRUE for all conditions.
Note that when a condition evaluates to NA, the row will be dropped, unlike
base subsetting with [.
Usage
## S3 method for class 'tm'
filter(.data, ...)
Arguments
.data |
A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details. |
... |
< |
Value
An object of the same type as .data. The output as the following properties:
-
tmobjects are a subset of the input, but appear in the same order Underlying
data.framecolumns are not modifiedUnderlying
data.frameobject's attributes are preserved
See Also
dplyr::filter() for examples of generic implementation