diff --git a/R/data_seek.R b/R/data_seek.R index 99208bd86..77cc91a72 100644 --- a/R/data_seek.R +++ b/R/data_seek.R @@ -20,12 +20,14 @@ #' @param seek Character vector, indicating where `pattern` is sought. Use one #' or more of the following options: #' -#' - `"name"`: searches in column names. -#' - `"labels"`: searches in variable labels. Only applies when a `label` attribute +#' - `"names"`: Searches in column names. `"column_names"` and `"columns"` are +#' aliases for `"names"`. +#' - `"labels"`: Searches in variable labels. Only applies when a `label` attribute #' is set for a variable. -#' - `"values"`: searches in value labels or factor levels. Only applies when a +#' - `"values"`: Searches in value labels or factor levels. Only applies when a #' `labels` attribute is set for a variable, or if a variable is a factor. -#' - `"all"`: searches in all of the above. +#' `"levels"` is an alias for `"values"`. +#' - `"all"`: Searches in all of the above. #' @param fuzzy Logical. If `TRUE`, "fuzzy matching" (partial and close distance #' matching) will be used to find `pattern`. #' diff --git a/man/data_seek.Rd b/man/data_seek.Rd index ba3c98bba..9c6709e28 100644 --- a/man/data_seek.Rd +++ b/man/data_seek.Rd @@ -17,12 +17,14 @@ variables in \code{data}.} \item{seek}{Character vector, indicating where \code{pattern} is sought. Use one or more of the following options: \itemize{ -\item \code{"name"}: searches in column names. -\item \code{"labels"}: searches in variable labels. Only applies when a \code{label} attribute +\item \code{"names"}: Searches in column names. \code{"column_names"} and \code{"columns"} are +aliases for \code{"names"}. +\item \code{"labels"}: Searches in variable labels. Only applies when a \code{label} attribute is set for a variable. -\item \code{"values"}: searches in value labels or factor levels. Only applies when a +\item \code{"values"}: Searches in value labels or factor levels. Only applies when a \code{labels} attribute is set for a variable, or if a variable is a factor. -\item \code{"all"}: searches in all of the above. +\code{"levels"} is an alias for \code{"values"}. +\item \code{"all"}: Searches in all of the above. }} \item{fuzzy}{Logical. If \code{TRUE}, "fuzzy matching" (partial and close distance