cleanKey: Standard cleaning of merge keys

Description Usage Arguments Value

View source: R/utils.R

Description

Removes all characters from key except for alphanumerics, (internal) space, dash, and underscore. Result is trimmed of leading/trailing white space and converted to uppercase. Use also_drop to provide a regex pattern specifying any additional patterns to be dropped. This rule is applied prior to to_na.

Usage

1
cleanKey(key, also_drop = NULL, to_na = "^$")

Arguments

key

Vector of keys to clean; coerced to character.

also_drop

Regex pattern specifying additional values to be dropped. Applied piror to to_na.

to_na

Character vector of values to convert to NA.

Value

Character vector, a modified version of key.


rebelrebel04/xplor documentation built on May 27, 2019, 4:01 a.m.