diff --git a/R/extract_list_of_variable_arrays.R b/R/extract_list_of_variable_arrays.R index 38afed09..3a76e7bb 100644 --- a/R/extract_list_of_variable_arrays.R +++ b/R/extract_list_of_variable_arrays.R @@ -5,7 +5,7 @@ #' \code{\link{extract_variable_array}}. #' #' @template args-methods-x -#' @param variables A character vector of variable names to extract, or NULL to +#' @param variable A character vector of variable names to extract, or NULL to #' extract all variables. To extract all dimensions from variables with #' indices (e.g. \code{"x[1]"}), provide the base variable names #' (e.g. \code{"x"}). diff --git a/R/variables.R b/R/variables.R index e0c732a0..985e4425 100644 --- a/R/variables.R +++ b/R/variables.R @@ -102,7 +102,7 @@ remove_reserved_variable_names <- function(variables, reserved) { #' @template args-methods-x #' @template args-methods-dots #' @template args-methods-with_indices -#' @param value,variables (character vector) new variable names. +#' @param value,variable (character vector) new variable names. #' #' @details #' `variables(x) <- value` allows you to modify the vector of variable names, diff --git a/man/extract_list_of_variable_arrays.Rd b/man/extract_list_of_variable_arrays.Rd index 13273e16..4800f366 100644 --- a/man/extract_list_of_variable_arrays.Rd +++ b/man/extract_list_of_variable_arrays.Rd @@ -16,12 +16,12 @@ extract_list_of_variable_arrays(x, variables = NULL, ...) \item{x}{(draws) A \code{draws} object or another \R object for which the method is defined.} -\item{variables}{A character vector of variable names to extract, or NULL to +\item{...}{Arguments passed to individual methods (if applicable).} + +\item{variable}{A character vector of variable names to extract, or NULL to extract all variables. To extract all dimensions from variables with indices (e.g. \code{"x[1]"}), provide the base variable names (e.g. \code{"x"}).} - -\item{...}{Arguments passed to individual methods (if applicable).} } \value{ A named list of arrays, where each array has dimension diff --git a/man/variables-set.Rd b/man/variables-set.Rd index 036707fd..a05c8f0f 100644 --- a/man/variables-set.Rd +++ b/man/variables-set.Rd @@ -30,7 +30,7 @@ is defined.} \item{...}{Arguments passed to individual methods (if applicable).} -\item{value, variables}{(character vector) new variable names.} +\item{value, variable}{(character vector) new variable names.} \item{with_indices}{(logical) Should indices be included in variable names? For example, if the object includes variables named \code{"x[1]"} and