Learn R Programming

tntpr (version 1.2.1)

standardize_case: Update case of a character vector

Description

Helper function for factorize_df(). Returns a vector of the same length as vec, with any values that match values in valid_strings updated to the case in valid_strings

Usage

standardize_case(vec, new_case)

Value

a character vector the same length as vec

Arguments

vec

The character vector you want to update

new_case

A character vector of correctly cased strings