Learn R Programming

vectra (version 0.6.2)

transmute: Keep only columns from mutate expressions

Description

Like mutate() but drops all other columns.

Usage

transmute(.data, ...)

Value

A new vectra_node with only the computed columns.

Arguments

.data

A vectra_node object.

...

Named expressions.

Examples

Run this code
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
tbl(f) |> transmute(kpl = mpg * 0.425) |> collect() |> head()
unlink(f)

Run the code above in your browser using DataLab