Learn R Programming

manydata (version 1.0.1)

transmutate: Drop only columns used in formula

Description

A function between dplyr's transmute and mutate

Usage

transmutate(.data, ...)

Value

Data frame with mutated variables and none of the variables used in the mutations, but, unlike dplyr::transmute(), all other unnamed variables.

Arguments

.data

Data frame to pass to the function

...

Variables to pass to the function

Examples

Run this code
# \donttest{
pluck(emperors, "Wikipedia")
transmutate(emperors$Wikipedia, Beginning = Begin)
# }

Run the code above in your browser using DataLab