transmute: Keep only columns from mutate expressions

View source: R/verbs_utility.R

transmuteR Documentation

Keep only columns from mutate expressions

Description

Like mutate() but drops all other columns.

Usage

transmute(.data, ...)

Arguments

.data

A vectra_node object.

...

Named expressions.

Value

A new vectra_node with only the computed columns.

Examples

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


vectra documentation built on May 8, 2026, 9:06 a.m.