| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/dplyr.R |
| 3 |
\name{mutate.skim_df} |
| 4 |
\alias{mutate.skim_df} |
| 5 |
\title{Mutate a skim_df} |
| 6 |
\usage{ |
| 7 |
\method{mutate}{skim_df}(.data, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{.data}{A \code{skim_df}, which behaves like a \code{tbl.}} |
| 11 |
|
| 12 |
\item{...}{Name-value pairs of expressions, each with length 1 or the same |
| 13 |
length as the number of rows in the group, if using \code{\link[dplyr:group_by]{dplyr::group_by()}}, or |
| 14 |
in the entire input (if not using groups). The name of each argument will |
| 15 |
be the name of a new variable, and the value will be its corresponding |
| 16 |
value. Use \code{NULL} value in \code{\link[dplyr:mutate]{dplyr::mutate()}} to drop a variable. New |
| 17 |
variables overwrite existing variables of the same name. |
| 18 |
|
| 19 |
The arguments in \code{...} are automatically quoted with \code{\link[rlang:defusing-advanced]{rlang::quo()}} and |
| 20 |
evaluated with \code{\link[rlang:eval_tidy]{rlang::eval_tidy()}} in the context of the data frame. They |
| 21 |
support unquoting \link[rlang:topic-inject]{rlang::quasiquotation} and splicing. See |
| 22 |
\code{vignette("programming", package = "dplyr")} for an introduction to these |
| 23 |
concepts.} |
| 24 |
} |
| 25 |
\value{ |
| 26 |
A \code{skim_df} object, which also inherits the class(es) of the input |
| 27 |
data. In many ways, the object behaves like a \code{\link[tibble:tibble]{tibble::tibble()}}. |
| 28 |
} |
| 29 |
\description{ |
| 30 |
\code{\link[dplyr:mutate]{dplyr::mutate()}} currently drops attributes, but we need to keep them around |
| 31 |
for other skim behaviors. Otherwise the behavior is exactly the same. For |
| 32 |
more information, see \url{https://github.com/tidyverse/dplyr/issues/3429}. |
| 33 |
} |
| 34 |
\seealso{ |
| 35 |
\code{\link[dplyr:mutate]{dplyr::mutate()}} for the function's expected behavior. |
| 36 |
} |