From 57f1813978953e258ab23e34435f963445315d01 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 27 Nov 2024 17:13:23 +0100 Subject: [PATCH 1/3] Fix inconsitencies in docs --- R/extract_column_names.R | 16 ++++++++++------ man/adjust.Rd | 11 ++++++----- man/assign_labels.Rd | 11 ++++++----- man/categorize.Rd | 11 ++++++----- man/center.Rd | 11 ++++++----- man/convert_na_to.Rd | 11 ++++++----- man/convert_to_na.Rd | 11 ++++++----- man/data_codebook.Rd | 11 ++++++----- man/data_duplicated.Rd | 11 ++++++----- man/data_extract.Rd | 11 ++++++----- man/data_group.Rd | 11 ++++++----- man/data_peek.Rd | 11 ++++++----- man/data_relocate.Rd | 11 ++++++----- man/data_rename.Rd | 11 ++++++----- man/data_replicate.Rd | 11 ++++++----- man/data_separate.Rd | 11 ++++++----- man/data_tabulate.Rd | 11 ++++++----- man/data_to_long.Rd | 11 ++++++----- man/data_unique.Rd | 11 ++++++----- man/data_unite.Rd | 11 ++++++----- man/describe_distribution.Rd | 11 ++++++----- man/extract_column_names.Rd | 16 ++++++++++------ man/labels_to_levels.Rd | 11 ++++++----- man/means_by_group.Rd | 11 ++++++----- man/normalize.Rd | 11 ++++++----- man/ranktransform.Rd | 11 ++++++----- man/recode_values.Rd | 11 ++++++----- man/rescale.Rd | 11 ++++++----- man/reverse.Rd | 11 ++++++----- man/row_count.Rd | 11 ++++++----- man/row_means.Rd | 11 ++++++----- man/slide.Rd | 11 ++++++----- man/standardize.Rd | 11 ++++++----- man/to_factor.Rd | 11 ++++++----- man/to_numeric.Rd | 11 ++++++----- 35 files changed, 218 insertions(+), 177 deletions(-) diff --git a/R/extract_column_names.R b/R/extract_column_names.R index a3d120d3f..ca6fba130 100644 --- a/R/extract_column_names.R +++ b/R/extract_column_names.R @@ -19,15 +19,16 @@ #' - a vector of negative integers, giving the positions counting from the #' right (e.g., `-1` or `-1:-3`), #' - one of the following select-helpers: `starts_with()`, `ends_with()`, -#' `contains()`, a range using `:` or `regex("")`. `starts_with()`, +#' `contains()`, a range using `:` or `regex()`. `starts_with()`, #' `ends_with()`, and `contains()` accept several patterns, e.g -#' `starts_with("Sep", "Petal")`. -#' - or a function testing for logical conditions, e.g. `is.numeric()` (or +#' `starts_with("Sep", "Petal")`. `regex()` can be used to define regular +#' expression patterns. +#' - a function testing for logical conditions, e.g. `is.numeric()` (or #' `is.numeric`), or any user-defined function that selects the variables #' for which the function returns `TRUE` (like: `foo <- function(x) mean(x) > 3`), #' - ranges specified via literal variable names, select-helpers (except #' `regex()`) and (user-defined) functions can be negated, i.e. return -#' non-matching elements, when prefixed with a `-`, e.g. `-ends_with("")`, +#' non-matching elements, when prefixed with a `-`, e.g. `-ends_with()`, #' `-is.numeric` or `-(Sepal.Width:Petal.Length)`. **Note:** Negation means #' that matches are _excluded_, and thus, the `exclude` argument can be #' used alternatively. For instance, `select=-ends_with("Length")` (with @@ -48,7 +49,7 @@ #' character string (or a variable containing a character string) and is not #' allowed to be one of the supported select-helpers or a character vector #' of length > 1. `regex = TRUE` is comparable to using one of the two -#' select-helpers, `select = contains("")` or `select = regex("")`, however, +#' select-helpers, `select = contains()` or `select = regex()`, however, #' since the select-helpers may not work when called from inside other #' functions (see 'Details'), this argument may be used as workaround. #' @param verbose Toggle warnings. @@ -131,7 +132,10 @@ #' numeric_mean_35 <- function(x) is.numeric(x) && mean(x, na.rm = TRUE) > 3.5 #' extract_column_names(iris, numeric_mean_35) #' -#' # find range of colum names by range, using character vector +#' # find column names, using range +#' extract_column_names(mtcars, c(cyl:hp, wt)) +#' +#' # find range of column names by range, using character vector #' extract_column_names(mtcars, c("cyl:hp", "wt")) #' #' # rename returned columns for "data_select()" diff --git a/man/adjust.Rd b/man/adjust.Rd index 48b321b8f..f11002bf9 100644 --- a/man/adjust.Rd +++ b/man/adjust.Rd @@ -53,15 +53,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -102,7 +103,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/assign_labels.Rd b/man/assign_labels.Rd index e6fd24252..ffb341a64 100644 --- a/man/assign_labels.Rd +++ b/man/assign_labels.Rd @@ -48,15 +48,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -81,7 +82,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/categorize.Rd b/man/categorize.Rd index 90a5e12b7..017bcd27c 100644 --- a/man/categorize.Rd +++ b/man/categorize.Rd @@ -99,15 +99,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -142,7 +143,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/center.Rd b/man/center.Rd index 4774020ab..4e0469555 100644 --- a/man/center.Rd +++ b/man/center.Rd @@ -82,15 +82,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -133,7 +134,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/convert_na_to.Rd b/man/convert_na_to.Rd index 702e0eb2e..0932a8563 100644 --- a/man/convert_na_to.Rd +++ b/man/convert_na_to.Rd @@ -51,15 +51,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -90,7 +91,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/convert_to_na.Rd b/man/convert_to_na.Rd index fe308d61e..3149bc84b 100644 --- a/man/convert_to_na.Rd +++ b/man/convert_to_na.Rd @@ -54,15 +54,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -87,7 +88,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/data_codebook.Rd b/man/data_codebook.Rd index d5a542be4..32de5598f 100644 --- a/man/data_codebook.Rd +++ b/man/data_codebook.Rd @@ -44,15 +44,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -94,7 +95,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_duplicated.Rd b/man/data_duplicated.Rd index 88624c8c8..26abe5314 100644 --- a/man/data_duplicated.Rd +++ b/man/data_duplicated.Rd @@ -30,15 +30,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -63,7 +64,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_extract.Rd b/man/data_extract.Rd index 0b544e710..d6a9ab935 100644 --- a/man/data_extract.Rd +++ b/man/data_extract.Rd @@ -37,15 +37,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -88,7 +89,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_group.Rd b/man/data_group.Rd index 9cb55de5d..977347933 100644 --- a/man/data_group.Rd +++ b/man/data_group.Rd @@ -34,15 +34,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -67,7 +68,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_peek.Rd b/man/data_peek.Rd index 9524c70ec..ba2e29069 100644 --- a/man/data_peek.Rd +++ b/man/data_peek.Rd @@ -37,15 +37,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -70,7 +71,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_relocate.Rd b/man/data_relocate.Rd index 8f360579d..b6ed996c5 100644 --- a/man/data_relocate.Rd +++ b/man/data_relocate.Rd @@ -54,15 +54,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -89,7 +90,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_rename.Rd b/man/data_rename.Rd index 2859c04d7..6fef0f1df 100644 --- a/man/data_rename.Rd +++ b/man/data_rename.Rd @@ -69,15 +69,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -102,7 +103,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_replicate.Rd b/man/data_replicate.Rd index 5a427d570..42f8d14d9 100644 --- a/man/data_replicate.Rd +++ b/man/data_replicate.Rd @@ -37,15 +37,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -76,7 +77,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_separate.Rd b/man/data_separate.Rd index 7c951f81c..d1d23ca68 100644 --- a/man/data_separate.Rd +++ b/man/data_separate.Rd @@ -40,15 +40,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -120,7 +121,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_tabulate.Rd b/man/data_tabulate.Rd index b28a26ede..555acefcc 100644 --- a/man/data_tabulate.Rd +++ b/man/data_tabulate.Rd @@ -89,15 +89,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -122,7 +123,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_to_long.Rd b/man/data_to_long.Rd index 1c77f764c..fc4511ac0 100644 --- a/man/data_to_long.Rd +++ b/man/data_to_long.Rd @@ -55,15 +55,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -109,7 +110,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_unique.Rd b/man/data_unique.Rd index a0a70b92a..7cd99b4bf 100644 --- a/man/data_unique.Rd +++ b/man/data_unique.Rd @@ -31,15 +31,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -67,7 +68,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/data_unite.Rd b/man/data_unite.Rd index 369fd33d8..79c7ff68a 100644 --- a/man/data_unite.Rd +++ b/man/data_unite.Rd @@ -37,15 +37,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -82,7 +83,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/describe_distribution.Rd b/man/describe_distribution.Rd index 80b69e115..fd39f7eb9 100644 --- a/man/describe_distribution.Rd +++ b/man/describe_distribution.Rd @@ -96,15 +96,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -133,7 +134,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/extract_column_names.Rd b/man/extract_column_names.Rd index bb0f9ada8..70d0909fc 100644 --- a/man/extract_column_names.Rd +++ b/man/extract_column_names.Rd @@ -53,15 +53,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -86,7 +87,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} @@ -167,7 +168,10 @@ extract_column_names(iris, starts_with("Sepal"), exclude = contains("Width")) numeric_mean_35 <- function(x) is.numeric(x) && mean(x, na.rm = TRUE) > 3.5 extract_column_names(iris, numeric_mean_35) -# find range of colum names by range, using character vector +# find column names, using range +extract_column_names(mtcars, c(cyl:hp, wt)) + +# find range of column names by range, using character vector extract_column_names(mtcars, c("cyl:hp", "wt")) # rename returned columns for "data_select()" diff --git a/man/labels_to_levels.Rd b/man/labels_to_levels.Rd index 163eb0eaa..d8588e9b9 100644 --- a/man/labels_to_levels.Rd +++ b/man/labels_to_levels.Rd @@ -43,15 +43,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -86,7 +87,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/means_by_group.Rd b/man/means_by_group.Rd index 6c06ac3b1..823656b32 100644 --- a/man/means_by_group.Rd +++ b/man/means_by_group.Rd @@ -61,15 +61,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -94,7 +95,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/normalize.Rd b/man/normalize.Rd index c325e98fe..a8cfe90d4 100644 --- a/man/normalize.Rd +++ b/man/normalize.Rd @@ -81,15 +81,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -121,7 +122,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/ranktransform.Rd b/man/ranktransform.Rd index 7046db2b5..587e428d4 100644 --- a/man/ranktransform.Rd +++ b/man/ranktransform.Rd @@ -49,15 +49,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -82,7 +83,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/recode_values.Rd b/man/recode_values.Rd index 66b7c6e32..6831d01a9 100644 --- a/man/recode_values.Rd +++ b/man/recode_values.Rd @@ -70,15 +70,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -113,7 +114,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/rescale.Rd b/man/rescale.Rd index 490964777..7be67e2b5 100644 --- a/man/rescale.Rd +++ b/man/rescale.Rd @@ -77,15 +77,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -120,7 +121,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/reverse.Rd b/man/reverse.Rd index 5767908ff..9fdeb7ca1 100644 --- a/man/reverse.Rd +++ b/man/reverse.Rd @@ -55,15 +55,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -98,7 +99,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/row_count.Rd b/man/row_count.Rd index 7bf54fe5f..d2a8cce43 100644 --- a/man/row_count.Rd +++ b/man/row_count.Rd @@ -33,15 +33,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -76,7 +77,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/row_means.Rd b/man/row_means.Rd index 43d85b5b0..0ebfa6442 100644 --- a/man/row_means.Rd +++ b/man/row_means.Rd @@ -47,15 +47,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -95,7 +96,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/slide.Rd b/man/slide.Rd index 2950855f4..e53480364 100644 --- a/man/slide.Rd +++ b/man/slide.Rd @@ -44,15 +44,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -87,7 +88,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} diff --git a/man/standardize.Rd b/man/standardize.Rd index fcc8c6ae7..df079cffe 100644 --- a/man/standardize.Rd +++ b/man/standardize.Rd @@ -155,15 +155,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -201,7 +202,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/to_factor.Rd b/man/to_factor.Rd index d544bdaae..20d9a4fb4 100644 --- a/man/to_factor.Rd +++ b/man/to_factor.Rd @@ -46,15 +46,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -89,7 +90,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} } diff --git a/man/to_numeric.Rd b/man/to_numeric.Rd index 39f04c3a9..cfb51e1a7 100644 --- a/man/to_numeric.Rd +++ b/man/to_numeric.Rd @@ -40,15 +40,16 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex("")}. \code{starts_with()}, +\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g -\code{starts_with("Sep", "Petal")}. -\item or a function testing for logical conditions, e.g. \code{is.numeric()} (or +\code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular +expression patterns. +\item a function testing for logical conditions, e.g. \code{is.numeric()} (or \code{is.numeric}), or any user-defined function that selects the variables for which the function returns \code{TRUE} (like: \code{foo <- function(x) mean(x) > 3}), \item ranges specified via literal variable names, select-helpers (except \code{regex()}) and (user-defined) functions can be negated, i.e. return -non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with("")}, +non-matching elements, when prefixed with a \code{-}, e.g. \code{-ends_with()}, \code{-is.numeric} or \code{-(Sepal.Width:Petal.Length)}. \strong{Note:} Negation means that matches are \emph{excluded}, and thus, the \code{exclude} argument can be used alternatively. For instance, \code{select=-ends_with("Length")} (with @@ -94,7 +95,7 @@ treated as regular expression. When \code{regex = TRUE}, select \emph{must} be a character string (or a variable containing a character string) and is not allowed to be one of the supported select-helpers or a character vector of length > 1. \code{regex = TRUE} is comparable to using one of the two -select-helpers, \code{select = contains("")} or \code{select = regex("")}, however, +select-helpers, \code{select = contains()} or \code{select = regex()}, however, since the select-helpers may not work when called from inside other functions (see 'Details'), this argument may be used as workaround.} From e5f6289dcd513fd3712245cb8d63b6fbe4487b75 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 27 Nov 2024 17:40:46 +0100 Subject: [PATCH 2/3] Update R/extract_column_names.R Co-authored-by: Etienne Bacher <52219252+etiennebacher@users.noreply.github.com> --- R/extract_column_names.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/extract_column_names.R b/R/extract_column_names.R index ca6fba130..b1cb54f35 100644 --- a/R/extract_column_names.R +++ b/R/extract_column_names.R @@ -19,7 +19,7 @@ #' - a vector of negative integers, giving the positions counting from the #' right (e.g., `-1` or `-1:-3`), #' - one of the following select-helpers: `starts_with()`, `ends_with()`, -#' `contains()`, a range using `:` or `regex()`. `starts_with()`, +#' `contains()`, a range using `:`, or `regex()`. `starts_with()`, #' `ends_with()`, and `contains()` accept several patterns, e.g #' `starts_with("Sep", "Petal")`. `regex()` can be used to define regular #' expression patterns. From b2838d6b5440ac7ad849cb788300036d6918743a Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 27 Nov 2024 17:44:31 +0100 Subject: [PATCH 3/3] update rd (comma) --- man/adjust.Rd | 2 +- man/assign_labels.Rd | 2 +- man/categorize.Rd | 2 +- man/center.Rd | 2 +- man/convert_na_to.Rd | 2 +- man/convert_to_na.Rd | 2 +- man/data_codebook.Rd | 2 +- man/data_duplicated.Rd | 2 +- man/data_extract.Rd | 2 +- man/data_group.Rd | 2 +- man/data_peek.Rd | 2 +- man/data_relocate.Rd | 2 +- man/data_rename.Rd | 2 +- man/data_replicate.Rd | 2 +- man/data_separate.Rd | 2 +- man/data_tabulate.Rd | 2 +- man/data_to_long.Rd | 2 +- man/data_unique.Rd | 2 +- man/data_unite.Rd | 2 +- man/describe_distribution.Rd | 2 +- man/extract_column_names.Rd | 2 +- man/labels_to_levels.Rd | 2 +- man/means_by_group.Rd | 2 +- man/normalize.Rd | 2 +- man/ranktransform.Rd | 2 +- man/recode_values.Rd | 2 +- man/rescale.Rd | 2 +- man/reverse.Rd | 2 +- man/row_count.Rd | 2 +- man/row_means.Rd | 2 +- man/slide.Rd | 2 +- man/standardize.Rd | 2 +- man/to_factor.Rd | 2 +- man/to_numeric.Rd | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/man/adjust.Rd b/man/adjust.Rd index f11002bf9..c47606ce0 100644 --- a/man/adjust.Rd +++ b/man/adjust.Rd @@ -53,7 +53,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/assign_labels.Rd b/man/assign_labels.Rd index ffb341a64..574730e7b 100644 --- a/man/assign_labels.Rd +++ b/man/assign_labels.Rd @@ -48,7 +48,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/categorize.Rd b/man/categorize.Rd index 017bcd27c..0fed929de 100644 --- a/man/categorize.Rd +++ b/man/categorize.Rd @@ -99,7 +99,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/center.Rd b/man/center.Rd index 4e0469555..691f10839 100644 --- a/man/center.Rd +++ b/man/center.Rd @@ -82,7 +82,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/convert_na_to.Rd b/man/convert_na_to.Rd index 0932a8563..369e3937d 100644 --- a/man/convert_na_to.Rd +++ b/man/convert_na_to.Rd @@ -51,7 +51,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/convert_to_na.Rd b/man/convert_to_na.Rd index 3149bc84b..f56fdd7da 100644 --- a/man/convert_to_na.Rd +++ b/man/convert_to_na.Rd @@ -54,7 +54,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_codebook.Rd b/man/data_codebook.Rd index 32de5598f..4fcddc1ff 100644 --- a/man/data_codebook.Rd +++ b/man/data_codebook.Rd @@ -44,7 +44,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_duplicated.Rd b/man/data_duplicated.Rd index 26abe5314..30d8a455d 100644 --- a/man/data_duplicated.Rd +++ b/man/data_duplicated.Rd @@ -30,7 +30,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_extract.Rd b/man/data_extract.Rd index d6a9ab935..91b5ee29a 100644 --- a/man/data_extract.Rd +++ b/man/data_extract.Rd @@ -37,7 +37,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_group.Rd b/man/data_group.Rd index 977347933..c360f7b5e 100644 --- a/man/data_group.Rd +++ b/man/data_group.Rd @@ -34,7 +34,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_peek.Rd b/man/data_peek.Rd index ba2e29069..5d5e2e18e 100644 --- a/man/data_peek.Rd +++ b/man/data_peek.Rd @@ -37,7 +37,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_relocate.Rd b/man/data_relocate.Rd index b6ed996c5..5991691cb 100644 --- a/man/data_relocate.Rd +++ b/man/data_relocate.Rd @@ -54,7 +54,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_rename.Rd b/man/data_rename.Rd index 6fef0f1df..3fea0fac4 100644 --- a/man/data_rename.Rd +++ b/man/data_rename.Rd @@ -69,7 +69,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_replicate.Rd b/man/data_replicate.Rd index 42f8d14d9..0be353c66 100644 --- a/man/data_replicate.Rd +++ b/man/data_replicate.Rd @@ -37,7 +37,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_separate.Rd b/man/data_separate.Rd index d1d23ca68..b85b01916 100644 --- a/man/data_separate.Rd +++ b/man/data_separate.Rd @@ -40,7 +40,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_tabulate.Rd b/man/data_tabulate.Rd index 555acefcc..ac91ead65 100644 --- a/man/data_tabulate.Rd +++ b/man/data_tabulate.Rd @@ -89,7 +89,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_to_long.Rd b/man/data_to_long.Rd index fc4511ac0..3e587c049 100644 --- a/man/data_to_long.Rd +++ b/man/data_to_long.Rd @@ -55,7 +55,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_unique.Rd b/man/data_unique.Rd index 7cd99b4bf..e0911901d 100644 --- a/man/data_unique.Rd +++ b/man/data_unique.Rd @@ -31,7 +31,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/data_unite.Rd b/man/data_unite.Rd index 79c7ff68a..c9893933e 100644 --- a/man/data_unite.Rd +++ b/man/data_unite.Rd @@ -37,7 +37,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/describe_distribution.Rd b/man/describe_distribution.Rd index fd39f7eb9..4837834ac 100644 --- a/man/describe_distribution.Rd +++ b/man/describe_distribution.Rd @@ -96,7 +96,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/extract_column_names.Rd b/man/extract_column_names.Rd index 70d0909fc..fe334e22f 100644 --- a/man/extract_column_names.Rd +++ b/man/extract_column_names.Rd @@ -53,7 +53,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/labels_to_levels.Rd b/man/labels_to_levels.Rd index d8588e9b9..c75e2f537 100644 --- a/man/labels_to_levels.Rd +++ b/man/labels_to_levels.Rd @@ -43,7 +43,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/means_by_group.Rd b/man/means_by_group.Rd index 823656b32..8407263b7 100644 --- a/man/means_by_group.Rd +++ b/man/means_by_group.Rd @@ -61,7 +61,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/normalize.Rd b/man/normalize.Rd index a8cfe90d4..ecb3a2706 100644 --- a/man/normalize.Rd +++ b/man/normalize.Rd @@ -81,7 +81,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/ranktransform.Rd b/man/ranktransform.Rd index 587e428d4..44b0052c4 100644 --- a/man/ranktransform.Rd +++ b/man/ranktransform.Rd @@ -49,7 +49,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/recode_values.Rd b/man/recode_values.Rd index 6831d01a9..11f9cfadc 100644 --- a/man/recode_values.Rd +++ b/man/recode_values.Rd @@ -70,7 +70,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/rescale.Rd b/man/rescale.Rd index 7be67e2b5..8d6025a8d 100644 --- a/man/rescale.Rd +++ b/man/rescale.Rd @@ -77,7 +77,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/reverse.Rd b/man/reverse.Rd index 9fdeb7ca1..0f33154a4 100644 --- a/man/reverse.Rd +++ b/man/reverse.Rd @@ -55,7 +55,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/row_count.Rd b/man/row_count.Rd index d2a8cce43..1a87de609 100644 --- a/man/row_count.Rd +++ b/man/row_count.Rd @@ -33,7 +33,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/row_means.Rd b/man/row_means.Rd index 0ebfa6442..3c859e992 100644 --- a/man/row_means.Rd +++ b/man/row_means.Rd @@ -47,7 +47,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/slide.Rd b/man/slide.Rd index e53480364..d68f7e30a 100644 --- a/man/slide.Rd +++ b/man/slide.Rd @@ -44,7 +44,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/standardize.Rd b/man/standardize.Rd index df079cffe..8e8d66867 100644 --- a/man/standardize.Rd +++ b/man/standardize.Rd @@ -155,7 +155,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/to_factor.Rd b/man/to_factor.Rd index 20d9a4fb4..7a500c071 100644 --- a/man/to_factor.Rd +++ b/man/to_factor.Rd @@ -46,7 +46,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns. diff --git a/man/to_numeric.Rd b/man/to_numeric.Rd index cfb51e1a7..abfcec0d8 100644 --- a/man/to_numeric.Rd +++ b/man/to_numeric.Rd @@ -40,7 +40,7 @@ character vector of variable names including ranges specified via \code{:} \item a vector of negative integers, giving the positions counting from the right (e.g., \code{-1} or \code{-1:-3}), \item one of the following select-helpers: \code{starts_with()}, \code{ends_with()}, -\code{contains()}, a range using \code{:} or \code{regex()}. \code{starts_with()}, +\code{contains()}, a range using \code{:}, or \code{regex()}. \code{starts_with()}, \code{ends_with()}, and \code{contains()} accept several patterns, e.g \code{starts_with("Sep", "Petal")}. \code{regex()} can be used to define regular expression patterns.