stephLH / caractr

R functions to deal with character vectors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

caractr

caractr provides a few functions in addition of those within stringr package.

Its name corresponds to the simplified French translation of character because some of the functions deal with French characters.

Examples

# Paste with an extra na.rm parameter
paste("chaine1", NA_character_, "chaine2")
caractr::str_paste("chaine1", NA_character_, "chaine2")

# Remove (French) accents in a string
caractr::str_remove_accent("Université de Franche-Comté")

# Converts from a numeric percentage to a French formatted label.
caractr::str_percent_fr(0.111, digits = 1)

About

R functions to deal with character vectors

License:Other


Languages

Language:R 100.0%