Learn R Programming

stringx (version 0.2.9)

Replacements for Base String Functions Powered by 'stringi'

Description

English is the native language for only 5% of the World population. Also, only 17% of us can understand this text. Moreover, the Latin alphabet is the main one for merely 36% of the total. The early computer era, now a very long time ago, was dominated by the US. Due to the proliferation of the internet, smartphones, social media, and other technologies and communication platforms, this is no longer the case. This package replaces base R string functions (such as grep(), tolower(), sprintf(), and strptime()) with ones that fully support the Unicode standards related to natural language and date-time processing. It also fixes some long-standing inconsistencies, and introduces some new, useful features. Thanks to 'ICU' (International Components for Unicode) and 'stringi', they are fast, reliable, and portable across different platforms.

Copy Link

Version

Install

install.packages('stringx')

Monthly Downloads

327

Version

0.2.9

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Marek Gagolewski

Last Published

January 11th, 2025

Functions in stringx (0.2.9)

strsplit

Split Strings into Tokens
strwrap

Word-Wrap Text
strtrim

Shorten Strings to Specified Width
xtfrm2

Sort Strings
sprintf

Format Strings
strptime

Parse and Format Date-time Objects
startsWith

Detect Pattern Occurrences at Start or End of Strings
substr

Extract or Replace Substrings
trimws

Trim Leading or Trailing Whitespaces
strrep

Duplicate Strings
strcoll

Compare Strings
regextr2

Extract Pattern Occurrences
regexpr2

Locate Pattern Occurrences
strtrans

Transliteration and Other Text Transforms
nchar

Get Length or Width of Strings
paste

Concatenate Strings
grepl2

Detect Pattern Occurrences
ISOdatetime

Construct Date-time Objects
about_stringx

Drop-in Replacements for Base String Functions Powered by Stringi
sub2

Replace Pattern Occurrences
digits_dec

Character Constants