Fast and Portable Character String Processing Facilities
Concatenate Two Character Vectors
Read Text File as Raw
Passing Arguments to Functions in stringi
Character Encodings and stringi
Locales and stringi
String Searching
Text Boundary Analysis in stringi
Character Classes in stringi
Locale-Sensitive Text Searching in stringi
Locale-Insensitive Fixed Pattern Matching in stringi
Regular Expressions in stringi
Fast and Portable Character String Processing in R
Compare Strings with or without Collation
C-Style Formatting with stri_sprintf
as a Binary Operator
Compare Strings with or without Collation
Count the Number of Pattern Occurrences
Count the Number of Text Boundaries
Date and Time Arithmetic
Create a Date-Time Object
Get Values for Date and Time Fields
Date and Time Formatting and Parsing
Convert strptime
-Style Format Strings
Get Current Date and Time
List Localizable Date-Time Formatting Data
Detect Pattern Occurrences
Duplicate Strings
Determine Duplicated Elements
Detect Character Set and Language
[DEPRECATED] Detect Locale-Sensitive Character Encoding
Convert From UTF-32
Query a Character Encoding
Check If a Data Stream Is Possibly in ASCII
Check If a Data Stream Is Possibly in UTF-16 or UTF-32
Check If a Data Stream Is Possibly in UTF-8
List Known Character Encodings
Get Declared Encodings of Each String
Set or Get Default Character Encoding in stringi
Convert To ASCII
Convert Strings To Native Encoding
Convert Strings To UTF-32
Convert Strings To UTF-8
Convert Strings Between Given Encodings
Escape Unicode Code Points
Extract Pattern Occurrences
Extract Data Between Text Boundaries
Flatten a String
Query Default Settings for stringi
Determine if a String is of Length Zero
Concatenate Character Vectors
Concatenate Strings in a List
Count the Number of Code Points
Convert a List to a Character Matrix
Query Given Locale
List Available Locales
Set or Get Default Locale in stringi
Locate Pattern Occurrences
Locate Text Boundaries
Extract Regex Pattern Matches, Together with Capture Groups
Replace NAs with Empty Strings
Count the Number of Bytes
Generate a List with BreakIterator Settings
Generate a List with Collator Settings
Generate a List with Fixed Pattern Search Engine's Settings
Generate a List with Regex Matcher Settings
Ordering Permutation
Pad (Center/Left/Right Align) a String
A Lorem Ipsum Generator
Randomly Shuffle Code Points in Each String
Generate Random Strings
Ranking
Read Text Lines from a Text File
Remove All Empty Strings from a Character Vector
Replace Pattern Occurrences
Replace Missing Values in a Character Vector
Convert gsub-Style Replacement Strings
Reverse Each String
String Sorting
Sort Keys
Split a String By Pattern Matches
Split a String at Text Boundaries
Split a String Into Text Lines
Format Strings
Determine if the Start or End of a String Matches a Pattern
General Statistics for a Character Vector
Statistics for a Character Vector Containing LaTeX Commands
Extract a Substring From or Replace a Substring In a Character Vector
Extract or Replace Multiple Substrings
Select Elements that Match a Given Pattern
Query a Given Time Zone
List Available Time Zone Identifiers
Set or Get Default Time Zone in stringi
Transform Strings with Case Mapping or Folding
Translate Characters
General Text Transforms, Including Transliteration
List Available Text Transforms and Transliterators
Perform or Check For Unicode Normalization
Trim Characters from the Left and/or Right Side of a String
Un-escape All Escape Sequences
Extract Unique Elements
Determine the Width of Code Points
Word Wrap Text to Format Paragraphs
Write Text Lines to a Text File
A collection of character string/text/natural language processing tools for pattern searching (e.g., with 'Java'-like regular expressions or the 'Unicode' collation algorithm), random string generation, case mapping, string transliteration, concatenation, sorting, padding, wrapping, Unicode normalisation, date-time formatting and parsing, and many more. They are fast, consistent, convenient, and - thanks to 'ICU' (International Components for Unicode) - portable across all locales and platforms. Documentation about 'stringi' is provided via its website at <https://stringi.gagolewski.com/> and the paper by Gagolewski (2022, <doi:10.18637/jss.v103.i02>).
Useful links