String interpolation and operations

Tools for string interpolation

string_magic() .string_magic() sma()

String interpolation with operation chaining

cat_magic_alias() message_magic_alias() cat_magic() catma() message_magic() mema()

Display messages using interpolated strings

string_magic_alias()

Create string_magic aliases with custom defaults

string_magic_register_fun() string_magic_register_ops()

Register custom operations to apply them in string_magic

timer_magic()

Sets up a timer that can be used within _magic functions

Other string operations

Pattern detection, operations chaining, string cleaning and more

string_clean_alias() string_clean() string_replace() stclean() streplace()

Cleans a character vector from multiple patterns

string_extract() stextract()

Extracts a pattern from a character vector

string_fill()

Fills a character string up to a size

string_get() stget()

Gets elements of a character vector

string_is() string_any() string_all() string_which() st_is() st_any() st_all() stwhich()

Detects whether a pattern is in a character string

string_ops_alias() string_ops() st_ops()

Chains basic operations to character vectors

string_split() stsplit()

Splits a character string wrt a pattern

string_split2df() string_split2dt()

Splits a character vector into a data frame

string_vec_alias() string_vec() stvec()

Efficient creation of string vectors with optional interpolation

parse_regex_pattern()

stringmagic's regular expression parser

paste_conditional()

Paste a string vector conditionally

Functions builders

Alias generators to create tailor made functions

cat_magic_alias() message_magic_alias() cat_magic() catma() message_magic() mema()

Display messages using interpolated strings

string_clean_alias() string_clean() string_replace() stclean() streplace()

Cleans a character vector from multiple patterns

string_magic_alias()

Create string_magic aliases with custom defaults

string_ops_alias() string_ops() st_ops()

Chains basic operations to character vectors

string_vec_alias() string_vec() stvec()

Efficient creation of string vectors with optional interpolation