diff --git a/R/extract.R b/R/extract.R index 5dc80672..82733850 100644 --- a/R/extract.R +++ b/R/extract.R @@ -1,7 +1,7 @@ #' Extract the complete match #' #' `str_extract()` extracts the first complete match from each string, -#' `str_extract_all()`extracts all matches from each string. +#' `str_extract_all()` extracts all matches from each string. #' #' @inheritParams str_count #' @param group If supplied, instead of returning the complete match, will @@ -12,7 +12,7 @@ #' * `FALSE` (the default): returns a list of character vectors. #' * `TRUE`: returns a character matrix. #' @return -#' * `str_extract()`: an character vector the same length as `string`/`pattern`. +#' * `str_extract()`: a character vector the same length as `string`/`pattern`. #' * `str_extract_all()`: a list of character vectors the same length as #' `string`/`pattern`. #' @export diff --git a/man/str_extract.Rd b/man/str_extract.Rd index 1c48856c..cd494e08 100644 --- a/man/str_extract.Rd +++ b/man/str_extract.Rd @@ -38,14 +38,14 @@ return the matched text from the specified capturing group.} } \value{ \itemize{ -\item \code{str_extract()}: an character vector the same length as \code{string}/\code{pattern}. +\item \code{str_extract()}: a character vector the same length as \code{string}/\code{pattern}. \item \code{str_extract_all()}: a list of character vectors the same length as \code{string}/\code{pattern}. } } \description{ \code{str_extract()} extracts the first complete match from each string, -\code{str_extract_all()}extracts all matches from each string. +\code{str_extract_all()} extracts all matches from each string. } \examples{ shopping_list <- c("apples x4", "bag of flour", "bag of sugar", "milk x2")