diff --git a/R/subset.R b/R/subset.R index 0f402da5..d0735b25 100644 --- a/R/subset.R +++ b/R/subset.R @@ -41,7 +41,7 @@ str_subset <- function(string, pattern, negate = FALSE) { #' Find matching indices #' -#' `str_subset()` returns the indices of`string` where there's at least +#' `str_which()` returns the indices of `string` where there's at least #' one match to `pattern`. It's a wrapper around #' `which(str_detect(x, pattern))`, and is equivalent to `grep(pattern, x)`. #' diff --git a/man/str_which.Rd b/man/str_which.Rd index 26539db6..51250c17 100644 --- a/man/str_which.Rd +++ b/man/str_which.Rd @@ -31,7 +31,7 @@ Match character, word, line and sentence boundaries with An integer vector, usually smaller than \code{string}. } \description{ -\code{str_subset()} returns the indices of\code{string} where there's at least +\code{str_which()} returns the indices of \code{string} where there's at least one match to \code{pattern}. It's a wrapper around \code{which(str_detect(x, pattern))}, and is equivalent to \code{grep(pattern, x)}. }