| mutate | R Documentation |
Add or transform columns
mutate(.data, ...)
.data |
A |
... |
Named expressions for new or transformed columns. |
Supported expression types: arithmetic (+, -, *, /, %%),
comparison, boolean, is.na(), nchar(), substr(), grepl() (fixed
match only). Window functions (row_number(), rank(), dense_rank(),
lag(), lead(), cumsum(), cummean(), cummin(), cummax()) are
detected automatically and routed to a dedicated window node.
When grouped, window functions respect partition boundaries.
This is a streaming operation for regular expressions; window functions materialize all rows within each partition.
A new vectra_node with mutated columns.
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
tbl(f) |> mutate(kpl = mpg * 0.425144) |> collect() |> head()
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.