Learn R Programming

parseRPDR (version 0.2.4)

pretty_text: 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 = TRUE,
  remove_punc = TRUE,
  remove_white = TRUE,
  add_na = TRUE
)

Value

vector, with characters formatted accordingly.

Arguments

v

vector, integer or sting vector with numerical values. Defaults to TRUE.

remove_after

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

remove_punc

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

remove_white

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

add_na

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