fill_type: Fills in the corresponding actor entity type for the dataset...

View source: R/cleaning_standardizing_preprocessing_functions.R

fill_typeR Documentation

Fills in the corresponding actor entity type for the dataset based on the actor name

Description

Guesses the entity type for the actors within the dataset based on commonly used words for the respective entity types.

Usage

fill_type(dataset)

Arguments

dataset

Dataset to fill in the entity type for

Details

The fill type function looks at the actor name and looks for common words for each entity type (such as "City", "Town" for cities and "Inc.", "Co." for companies) to guess the entity type for that actor.

Value

The original dataset with entity types filled for the actors


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