From 9d0068491db348d00253af6bc29e5c4dbfaeafe4 Mon Sep 17 00:00:00 2001 From: "J. Allen Baron" Date: Tue, 16 May 2023 21:43:56 -0400 Subject: [PATCH 1/2] Fix function name in str_which() documentation --- R/subset.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)`. #' From 6f308de487c123521c0886e303787baf1e60c4f3 Mon Sep 17 00:00:00 2001 From: hadley Date: Fri, 4 Aug 2023 19:43:04 +0000 Subject: [PATCH 2/2] Document --- man/str_which.Rd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)}. }