| filter | R Documentation |
Filter rows of a vectra query
filter(.data, ...)
.data |
A |
... |
Filter expressions (combined with |
Filter uses zero-copy selection vectors: matching rows are indexed without
copying data. Multiple conditions are combined with &. Supported
expression types: arithmetic (+, -, *, /, %%), comparison
(==, !=, <, <=, >, >=), boolean (&, |, !), is.na(),
and string functions (nchar(), substr(), grepl() with fixed patterns).
NA comparisons return NA (SQL semantics). Use is.na() to filter NAs
explicitly.
This is a streaming operation (constant memory per batch).
A new vectra_node with the filter applied.
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
tbl(f) |> filter(cyl > 4) |> collect() |> head()
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.