From a4b1e7cc5bd594823eab13ca05b28adef266fee4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 20 May 2024 14:09:37 +0200 Subject: [PATCH] update --- R/data_to_wide.R | 12 ++++++------ man/data_to_wide.Rd | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/R/data_to_wide.R b/R/data_to_wide.R index 1c88a3ce4..7694fddf9 100644 --- a/R/data_to_wide.R +++ b/R/data_to_wide.R @@ -7,12 +7,12 @@ #' @param data A data frame to convert to wide format, so that it has more #' columns and fewer rows post-widening than pre-widening. #' @param by The name of the column that identifies the rows in the data by -#' which observations are grouped and the gathered data spread into new columns. -#' Usually, this is a variable containing an ID for observations that have been -#' repeatedly measured. If `NULL`, it will use all remaining columns that are -#' not in `names_from` or `values_from` as ID columns. `by` can also be a -#' character vector with more than one name of identifier columns. See also -#' 'Details'. +#' which observations are grouped and the gathered data is spread into new +#' columns. Usually, this is a variable containing an ID for observations that +#' have been repeatedly measured. If `NULL`, it will use all remaining columns +#' that are not in `names_from` or `values_from` as ID columns. `by` can also +#' be a character vector with more than one name of identifier columns. See also +#' 'Details' and 'Examples'. #' @param names_from The name of the column in the original data whose values #' will be used for naming the new columns created in the widened data. Each #' unique value in this column will become the name of one of these new columns. diff --git a/man/data_to_wide.Rd b/man/data_to_wide.Rd index 09c656b1b..ef2cacb7e 100644 --- a/man/data_to_wide.Rd +++ b/man/data_to_wide.Rd @@ -38,12 +38,12 @@ reshape_wider( columns and fewer rows post-widening than pre-widening.} \item{by}{The name of the column that identifies the rows in the data by -which observations are grouped and the gathered data spread into new columns. -Usually, this is a variable containing an ID for observations that have been -repeatedly measured. If \code{NULL}, it will use all remaining columns that are -not in \code{names_from} or \code{values_from} as ID columns. \code{by} can also be a -character vector with more than one name of identifier columns. See also -'Details'.} +which observations are grouped and the gathered data is spread into new +columns. Usually, this is a variable containing an ID for observations that +have been repeatedly measured. If \code{NULL}, it will use all remaining columns +that are not in \code{names_from} or \code{values_from} as ID columns. \code{by} can also +be a character vector with more than one name of identifier columns. See also +'Details' and 'Examples'.} \item{values_from}{The name of the column in the original data that contains the values used to fill the new columns created in the widened data.}