stdchar: Standardize Character Vector

Description Usage Arguments Value Examples

Description

This function takes a character vector, removes spaces, seperates words with "-", removes commas, and makes it upper case. The idea is that if we want to match names, it's nice to have it clean up the character vectors first.

Usage

1

Arguments

x

a character vector to be standardized

Value

If the argument is a character or factor vector, stchar returns a modified version. Otherwise, it returns the argument.

Examples

1
2
names = c(" joe schmo","pereda, LUpe")
stdchar(names)

svenhalvorson/SvenSFPS documentation built on May 21, 2019, 11:42 a.m.