Learn R Programming

dtplyr (version 1.1.0)

transmute.dtplyr_step: Create new columns, dropping old

Description

This is a method for the dplyr transmute() generic. It is translated to the j argument of [.data.table.

Usage

# S3 method for dtplyr_step
transmute(.data, ...)

Arguments

.data
...

<data-masking> Name-value pairs. The name gives the name of the column in the output, and the value should evaluate to a vector.

Examples

Run this code
# NOT RUN {
library(dplyr, warn.conflicts = FALSE)

dt <- lazy_dt(dplyr::starwars)
dt %>% transmute(name, sh = paste0(species, "/", homeworld))
# }

Run the code above in your browser using DataLab