resolve_entity_types: Resolve conflicting entity types

View source: R/cleaning_standardizing_preprocessing_functions.R

resolve_entity_typesR Documentation

Resolve conflicting entity types

Description

Resolve entity type conflicts between user's dataset and the key dictionary. The function checks for entries that have the same name and are from the same country but have different entity types.between the user's dataset and the key dictionary. Users can decide whether they would like to accept the key dictionary's entity types or export a dataframe of the differences for inspection.

Usage

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

Arguments

dataset

Dataset containing actors' names

key.dict

Key dictionary

clean_enc

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

Value

Returns the dataset with entity types resolved (if applicable)

Also returns a dataset that contains the different conflicts (if applicable)


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