str_clean: Transform name colums to human readable strings

Description Usage Arguments Examples

View source: R/stringr.R

Description

Transform name colums to human readable strings

Usage

1
str_clean(string, sep = "_|\\.", fun = stringr::str_to_title)

Arguments

string

String

sep

Pattern to make spaces strings

fun

Function to apply before the separation

Examples

1
2
3
4
5
6
string <- c("name.with...points", "or_Under___scores")
string

str_clean(string)
str_clean(string, fun = toupper)
str_clean(string, fun = stringr::str_to_title)

jbkunst/jbkmisc documentation built on Nov. 8, 2019, 11:40 a.m.