Skip to content

edo91/prettifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prettifier

The goal of prettifier is to clean up strings.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("edo91/prettifier")

Example

This is a basic example which shows you how to solve a common problem:

library(prettifier)
x <- "a1~!#$€%^&*|__+:____()[]{}<>?,./;:'-=òìàèéù dASFGHRV"

prettify_string(x)
#> [1] "a1_oiaeeu_dasfghrv"

# custom replacement
prettify_string(x = "5%_in_€")
#> [1] "5_in_"
prettify_string(x = "5%_in_€", "%" = "perc")
#> [1] "5perc_in_"
prettify_string(x = "5%_in_€", "%" = "perc", "" = "eur")
#> [1] "5perc_in_eur"

About

Package for data cleaning support

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages