eq_location_clean: Cleaning country names

Description Usage Arguments Details Value Note Examples

Description

The 'eq_location_clean(data, countryCol)' function will change the given column into title case.

Usage

1

Arguments

data

- A delimited file that is read in by the 'read_delim' function

colName

- The 'colName' parameter is a character and represents the column with the country names

Details

The column with the country names of the given data file will be changed into title case.

Value

A data frame in the global environment

Note

error - An error is given when colName is not given.

error - An error is given when colName is not a character

Examples

1
2
3
4
5
6
## Not run: 
file = "data/earthquakes.tsv.gz"
file <- read_delim(file, delim = "\t")
eq_location_clean(file, COUNTRY)

## End(Not run)

jennychungpy/earthquakes documentation built on May 12, 2019, 2:01 p.m.