From 3504f87459598794fe5cfae85a1456e4671a6d48 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 14 Nov 2023 10:47:48 +0100 Subject: [PATCH] typo --- R/data_rescale.R | 8 ++++---- man/rescale.Rd | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/R/data_rescale.R b/R/data_rescale.R index 04646a9d9..526601716 100644 --- a/R/data_rescale.R +++ b/R/data_rescale.R @@ -1,7 +1,7 @@ #' Rescale Variables to a New Range #' -#' Rescale variables to a new range. -#' Can also be used to reverse-score variables (change the keying/scoring direction). +#' Rescale variables to a new range. Can also be used to reverse-score variables +#' (change the keying/scoring direction), or to expand a range. #' #' @inheritParams categorize #' @inheritParams find_columns @@ -13,12 +13,12 @@ #' @param multiply If not `NULL`, `to` is ignored and `multiply` will be used, #' giving the factor by which the actual range of `x` should be expanded. #' For example, if a vector range from 5 to 15 and `multiply = 1.1`, the current -#' range of 10 will be expanced by the factor of 1.1, giving a new range of +#' range of 10 will be expanded by the factor of 1.1, giving a new range of #' 11. Thus, the rescaled vector would range from 4.5 to 15.5. #' @param add If not `NULL`, `to` is ignored and `add` will be used, giving the #' amount by which the actual range of `x` should be expanded. For example, #' if a vector range from 5 to 15 and `add = 1`, the current range of 10 will -#' be expanced by 1, giving a new range of 11. Thus, the rescaled vector would +#' be expanded by 1, giving a new range of 11. Thus, the rescaled vector would #' range from 4.5 to 15.5, because the lower and upper bounds are each expanded #' by half of the amount specified in `add`. #' @param range Initial (old) range of values. If `NULL`, will take the range of diff --git a/man/rescale.Rd b/man/rescale.Rd index 23bdf7caf..eb4f5977e 100644 --- a/man/rescale.Rd +++ b/man/rescale.Rd @@ -48,13 +48,13 @@ be given with the maximum value first. See examples.} \item{multiply}{If not \code{NULL}, \code{to} is ignored and \code{multiply} will be used, giving the factor by which the actual range of \code{x} should be expanded. For example, if a vector range from 5 to 15 and \code{multiply = 1.1}, the current -range of 10 will be expanced by the factor of 1.1, giving a new range of +range of 10 will be expanded by the factor of 1.1, giving a new range of 11. Thus, the rescaled vector would range from 4.5 to 15.5.} \item{add}{If not \code{NULL}, \code{to} is ignored and \code{add} will be used, giving the amount by which the actual range of \code{x} should be expanded. For example, if a vector range from 5 to 15 and \code{add = 1}, the current range of 10 will -be expanced by 1, giving a new range of 11. Thus, the rescaled vector would +be expanded by 1, giving a new range of 11. Thus, the rescaled vector would range from 4.5 to 15.5, because the lower and upper bounds are each expanded by half of the amount specified in \code{add}.} @@ -126,8 +126,8 @@ functions (see 'Details'), this argument may be used as workaround.} A rescaled object. } \description{ -Rescale variables to a new range. -Can also be used to reverse-score variables (change the keying/scoring direction). +Rescale variables to a new range. Can also be used to reverse-score variables +(change the keying/scoring direction), or to expand a range. } \section{Selection of variables - the \code{select} argument}{