Learn R Programming

⚠️There's a newer version (0.2.9) of this package.Take me there.

stringx (version 0.2.8)

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

285

Version

0.2.8

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Marek Gagolewski

Last Published

April 9th, 2024

Functions in stringx (0.2.8)

paste

Concatenate Strings
strrep

Duplicate Strings
strptime

Parse and Format Date-time Objects
strwrap

Word-Wrap Text
substr

Extract or Replace Substrings
strsplit

Split Strings into Tokens
strtrim

Shorten Strings to Specified Width
sprintf

Format Strings
xtfrm2

Sort Strings
strcoll

Compare Strings
startsWith

Detect Pattern Occurrences at Start or End of Strings
trimws

Trim Leading or Trailing Whitespaces
regexpr2

Locate Pattern Occurrences
grepl2

Detect Pattern Occurrences
regextr2

Extract Pattern Occurrences
sub2

Replace Pattern Occurrences
ISOdatetime

Construct Date-time Objects
about_stringx

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

Transliteration and Other Text Transforms
nchar

Get Length or Width of Strings
digits_dec

Character Constants