eq_location_clean: Clean location name for data from NOAA

Description Usage Arguments Details Value Examples

Description

This function cleans the LOCATION_NAME colunm in a dataset from NOAA, by stripping out the country name (including the colon) and converts names to title case (as opposed to all caps)

Usage

1

Arguments

data

data frame from NOAA, Default: NULL

Details

this function uses the character vector "country_names" included in this package. For more details type ?country_names.

Value

a data frame with any other column in the original data frame.

Examples

1
2
3
4
5
6
7
## Not run: 
if(interactive()){
  clean_data <- eq_location_clean(data = Earthquakes)
  head(clean_data)
  }
 
## End(Not run)

Juanin2691/toolsEarthquakes documentation built on May 28, 2019, 5:41 p.m.