transmute | R Documentation |
transmute()
creates a new data frame containing only the specified
computations. It's superseded because you can perform the same job
with mutate(.keep = "none")
.
transmute(.data, ...)
.data |
A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details. |
... |
< The value can be:
|
An object of the same type as .data
. The output has the following
properties:
Columns created or modified through ...
will be returned in the order
specified by ...
.
Unmodified grouping columns will be placed at the front.
The number of rows is not affected.
Columns given the value NULL
will be removed.
Groups will be recomputed if a grouping variable is mutated.
Data frame attributes are preserved.
This function is a generic, which means that packages can provide implementations (methods) for other classes. See the documentation of individual methods for extra arguments and differences in behaviour.
Methods available in currently loaded packages: \Sexpr[stage=render,results=rd]{dplyr:::methods_rd("transmute")}.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.