eq_location_clean: eq_location_clean

Description Usage Arguments Value Examples

View source: R/eq_location_clean.R

Description

This function is a intermediate step to clean the raw data. The 'eq_clean_data' will use it behind the scenes to insert the column LOCATION.

Usage

1
eq_location_clean(df_2 = rlang::.data)

Arguments

df_2

A DataFrame with LOCATION_NAME column.

Value

Adds a new column to the DataFrame called LOCATION, following the specifications: Title Case and without country name.

Examples

1
2
3
4
5
6
## Not run: 
# Piping a DataFrame with LOCATION_NAME to be converted in LOCATION.
readr::read_delim("inst/extdata/signif.txt",
                  delim = "\t") %>%
                      eq_location_clean()
## End(Not run)

nandinigntr/MSDR documentation built on Jan. 1, 2021, 11:32 a.m.