#Stringr
Most updates were to docs and internals, but one feature to note is that we’ve added support for stringr::str_replace_na()
November 6, 2025 at 10:02 AM
And stringr 1.6.0 is out too: tidyverse.org/blog/2025/11.... A fairly small release but some handy improvements thanks to tidyverse dev day contributors! #rstats
stringr 1.6.0
This release deprecates `str_like(ignore_case)` and changes the behaviour of `str_replace_all()` for function replacements. It also introduces `str_ilike()` for case-insensitive SQL-like pattern matc...
tidyverse.org
November 4, 2025 at 10:45 PM
Updates on CRAN: NMdata (0.2.2), purrr (1.2.0), sspse (1.1.0-3), stringr (1.6.0), tepr (1.1.12)
November 4, 2025 at 5:19 PM
CRAN updates: NMdata purrr sspse stringr #rstats
November 4, 2025 at 2:02 PM
STRiNGRファンにとって至高の経験すぎるし行かない選択肢ないねこれは
October 23, 2025 at 12:10 PM
@statsepi.bsky.social
stringr::str_split(string, ",(?! )", simplify = TRUE)
October 9, 2025 at 3:57 PM
Seems like this works?
October 9, 2025 at 3:05 PM
stringr::str_detect is all you need
October 9, 2025 at 2:55 PM
Text Analytics in R with quanteda (Part 1)

"Required Packages
library(quanteda)
library(quanteda.textstats)
library(quanteda.textplots)
library(readr)
library(dplyr)
library(ggplot2)
library(stringr)
library(DT)
library(tidytext)
Understanding Text Analytics Fundamentals
Text analytic...

Co..."
October 14, 2025 at 4:37 PM
If you ever find yourself needing to write something dependency free, but you usually use `stringr`, bookmark this bad boy

stringr.tidyverse.org/articles/fro...
From base R
stringr
stringr.tidyverse.org
October 2, 2025 at 6:08 PM
x <- c("8", "10", "1", "40", "9A", "21A", "21B")
stringr::str_sort(x, numeric = TRUE)
[1] "1" "8" "9A" "10" "21A" "21B" "40"
October 1, 2025 at 7:53 PM
it's smarter than that

files <- c("1-intro.md", "11-appendix.md", "2-chapter.md", "3-chapter.md")
stringr::str_sort(files, numeric = TRUE)
#> [1] "1-intro.md" "2-chapter.md" "3-chapter.md"
#> [4] "11-appendix.md"
October 1, 2025 at 5:30 PM
I like str_wrap() too from {stringr}.
October 1, 2025 at 5:14 PM
Just learned: It's so easy to sort strings that are numbers in proper numerical order with the {stringr} #Rstats 📦's `str_sort()` function and numeric = TRUE!!
x <- c("8", "10", "1", "40")
str_sort(x, numeric = TRUE)
[1] "1" "8" "10" "40"
October 1, 2025 at 4:53 PM
10/
Key takeaways:
awk = lightweight, precise

csvtk = robust, CSV-aware

stringr = complex logic in R

Always validate after replacing. Mistakes here can cost you a week.
September 27, 2025 at 1:45 PM
6/
Prefer R?
For more complex regex:
library(stringr)
df$V5 <- str_replace(df$V5, "pattern", "replacement")

Want to go further? Use str_replace_all() or mutate() from dplyr.
September 27, 2025 at 1:45 PM
the way that namespaced functions get automatically translated to SQL if the package author's support that function translation... is weird magic

con <- DBI::dbConnect(duckdb::duckdb())
dbplyr::translate_sql(stringr::str_trim(x), con = con)
#> LTRIM(RTRIM(x))
September 16, 2025 at 8:08 PM
Wtf why is the remove NA functionality not default behaviour in stringr::str_c

Also thank you, I did not know about this function
September 13, 2025 at 2:01 AM
I don't know how messy your school names are and you may already have this data taken care of! But the {stringr} functions in #rstats are really handy! They won't take care of misspellings though. :(
September 9, 2025 at 7:30 PM
Updates on CRAN: bigalgebra (2.0.2), MKMeans (3.4.4), shortIRT (0.1.4), stringr (1.5.2)
September 8, 2025 at 1:26 PM
CRAN updates: bigalgebra MKMeans stringr #rstats
September 8, 2025 at 12:02 PM
14/
Key takeaways:
• Regex cleans messy data fast
• Works on gene IDs, labels, metadata
• Combine with stringr for clarity
September 3, 2025 at 1:45 PM
Ever need to count the number of characters in a variable (sometimes based on a pattern)? The #rstats {stringr} package is great for that. ✨
cghlewis.github.io/data-wrangli...
August 29, 2025 at 11:09 AM
need new IP as well:

"The WiRe" about trying to catch {stringr} Bell and tidyverse-ing up BaltimoRe
August 21, 2025 at 8:47 PM