Skip to contents

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)

Arguments

vec

The character vector you want to update

new_case

A character vector of correctly cased strings

Value

a character vector the same length as vec