get_source_filter {rock} | R Documentation |
Create a filter to select utterances in a source
Description
This function takes a character vector with regular expressions, a numeric vector with numeric indices, or a logical vector that is either as long as the source or has length 1; and then always returns a logical vector of the same length as the source.
Usage
get_source_filter(
source,
filter,
ignore.case = TRUE,
invert = FALSE,
perl = TRUE,
...
)
Arguments
source |
The source to produce the filter for. |
filter |
THe filtering criterion: a character vector with regular expressions, a numeric vector with numeric indices, or a logical vector that is either as long as the source or has length 1. |
ignore.case |
Whether to apply the regular expression case sensitively
or not (see |
invert |
Whether to invert the result or not (i.e. whether the filter
specifies what you want to select ( |
perl |
Whether the regular expression (if |
... |
Any additional arguments are passed on to |
Value
A logical vector of the same length as the source.