clean_name: Clean actor names using exact matches

View source: R/name_phonetic_matching_functions.R

clean_nameR Documentation

Clean actor names using exact matches

Description

Cleans the datasets' actor names based on the key dictionary using exact string matching

Usage

clean_name(dataset, key.dict, clean_enc = T)

Arguments

dataset

Dataset to clean the actors' names for

key.dict

Key dictionary to use to clean the actors' names

clean_enc

Is the data read in with the correct encoding? If unknown, set as FALSE. Defaults to TRUE.

Value

Returns a dataset with actors names' cleaned using exact string matching. Also creates a vector of indices of names that require cleaning.


datadrivenenvirolab/ClimActor documentation built on April 23, 2024, 7:40 a.m.