From 92b7d51256270a4bcd983aafd36926092c0a41af Mon Sep 17 00:00:00 2001 From: Elen Le Foll Date: Thu, 12 Sep 2024 10:22:31 +0200 Subject: [PATCH] Corrected typo in example command strings.qmd --- html/strings.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/strings.qmd b/html/strings.qmd index 58b37ea5..3806fb54 100644 --- a/html/strings.qmd +++ b/html/strings.qmd @@ -40,7 +40,7 @@ see <- function(rx) str_view("abc ABC 123\t.!?\\(){}\n", rx) Also `str_like()`. ```{r} - str(fruit, "a") + str_detect(fruit, "a") ``` - `str_starts(string, pattern, negate = FALSE)`: Detect the presence of a pattern match at the beginning of a string.