Search results

  • ...following line is equivalent to sapply(c("a", "i", "o", "u"), function(x) stringr::str_count(dict, x)) #As with all things with strings in R, life is easier with stringr or stringi. ...
    50 KB (6,166 words) - 12:17, 5 December 2023
  • ...owing line is equivalent to sapply(c("a", "e", "i", "o", "u"), function(x) stringr::str_count(dictBig, x)) #As with all things with strings in R, life is easier with stringr or stringi. ...
    60 KB (6,814 words) - 12:15, 5 December 2023
  • This is most cleanly accomplished using the <code>stringr</code> package. if(!require(stringr)) stop("you need to install the stringr package") ...
    78 KB (9,873 words) - 16:24, 10 February 2024
  • The <code>fixed</code> parameter (and, in <code>stringr</code>, the function of the same name) is used to specify a search for a fi {{libheader|stringr}} ...
    112 KB (13,614 words) - 15:21, 28 April 2024
  • The last three lines can be made simpler by using {{libheader|stringr}} library(stringr) ...
    84 KB (11,135 words) - 17:00, 16 February 2024
  • === Using the stringr tidyverse library === Another option, using <code>stringr::str_wrap</code> ...
    280 KB (41,791 words) - 10:55, 17 February 2024
  • #The following line is equivalent to sapply(consonants, function(x) stringr::str_count(dictBig, x)) #As with all things with strings in R, life is easier with stringr or stringi. ...
    203 KB (16,331 words) - 12:12, 5 December 2023