From fc18483531614997c9645e9b3de15a4b506df8b4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 24 Nov 2024 15:08:29 +0100 Subject: [PATCH] typo --- R/data_rename.R | 4 ++-- man/data_rename.Rd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/data_rename.R b/R/data_rename.R index 209d4960f..7cc9736f1 100644 --- a/R/data_rename.R +++ b/R/data_rename.R @@ -30,7 +30,7 @@ #' - `{n}` will be replaced by the number of the variable that is replaced. #' - `{letter}` will be replaced by alphabetical letters in sequential order. #' - Finally, the name of a user-defined object that is available in the -#' environment can be used. In this case, +#' environment can be used. #' #' An example for the use of tokens is... #' ```r @@ -262,7 +262,7 @@ data_rename <- function(data, if (length(values) != length(pattern)) { insight::format_error(paste0( "The number of values provided in `", token, "` (", length(values), - " values) do not match the number of the columns to rename (", + " values) do not match the number of columns to rename (", length(pattern), " columns)." )) } diff --git a/man/data_rename.Rd b/man/data_rename.Rd index a975cac2e..3559b911f 100644 --- a/man/data_rename.Rd +++ b/man/data_rename.Rd @@ -123,7 +123,7 @@ the corresponding value in \code{pattern}. \item \code{{n}} will be replaced by the number of the variable that is replaced. \item \code{{letter}} will be replaced by alphabetical letters in sequential order. \item Finally, the name of a user-defined object that is available in the -environment can be used. In this case, +environment can be used. } An example for the use of tokens is...