pretty_text: Removes spaces, special characters and capitals from string...

View source: R/pretty_text.R

pretty_textR Documentation

Removes spaces, special characters and capitals from string vector.

Description

Removes paces, special characters and capitals from string vector and converts unknowns to NA.

Usage

pretty_text(
  v,
  remove_after = FALSE,
  remove_punc = FALSE,
  remove_white = FALSE,
  add_na = TRUE
)

Arguments

v

vector, integer or sting vector with numerical values.

remove_after

boolean whether to remove text after -. Defaults to FALSE.

remove_punc

boolean, whether to remove punctuation marks. Defaults to FALSE.

remove_white

boolean, whether to remove white spaces. Defaults to FALSE.

add_na

boolean, whether to change text indicating NA to NA values in R. Defaults to TRUE.

Value

vector, with characters formatted accordingly.


parseRPDR documentation built on June 24, 2024, 5:16 p.m.