About 50 results
Open links in new tab
  1. stringr, str_extract: how to do positive lookbehind?

    It is complaining about needing a "bounded maximum length", but I don't see where to specify that. How do I make positive-lookbehind work? Where, exactly, can I specify this "bounded maximum length"? …

  2. stringr str_replace on multiple patterns and replacements?

    Feb 8, 2020 · The chartr() solution was new to me too, but I wanted to replace single characters with multiple. Eventually found a stringr (v1.4.0) solution that's quite simple. In fact it's in the help page, …

  3. stringr - using R How to remove all words after a specific character in ...

    Dec 18, 2020 · I have a column in tbl_df titled "Search" and would like to remove all characters to the right of the question mark "?" Example Atlanta?adfjladsfjf Georgia?fdfdfjflajf LosAngeles?

  4. r - How to remove all whitespace from a string? - Stack Overflow

    May 13, 2011 · The stringr approach: str_replace_all and str_trim stringr provides more human-readable wrappers around the base R functions (though as of Dec 2014, the development version has a …

  5. How to load the 'stringr' package in R? - Stack Overflow

    Jan 26, 2012 · The parsing algorithm requires loading the external "stringr" library. The R gui terminal consistently says it cannot find the library, even though multiple references exist online.

  6. Detect multiple strings with dplyr and stringr - Stack Overflow

    I'm trying to combine dplyr and stringr to detect multiple patterns in a dataframe. I want to use dplyr as I want to test a number of different columns. Here's some sample data: test.data <- ...

  7. stringr - Improving efficiency of regexp string detection for large R ...

    Oct 10, 2024 · I'm working on a problem in R that requires detecting a bunch of different "patterns" (regular expressions) from an even large bunch of strings. The desired output …

  8. r - Remove part of a string - Stack Overflow

    Mar 14, 2012 · How do I remove part of a string? For example in ATGAS_1121 I want to remove everything before _.

  9. R/Stringr Extract String after nth occurrence of - Stack Overflow

    Mar 23, 2021 · stringr::str_length() then returns the integer length of the string (or, 'total number of characters'). After extracting the specific index values, you then need to extract a substring from …

  10. Remove empty strings from library(stringr) in R - Stack Overflow

    Apr 17, 2021 · Remove empty strings from library (stringr) in R Asked 4 years, 8 months ago Modified 4 years ago Viewed 8k times