eq_location_clean: Cleaning country names

Description Usage Arguments Details Value Note Examples

View source: R/eq_location_clean.R

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 July 24, 2017, 10:37 a.m.