Description Usage Arguments Value Examples
Function eq_location_clean() cleans the LOCATION_NAME column by stripping out the country name (including the colon) and converts names to title case (as opposed to all caps).
1 | eq_location_clean(raw_earthquake)
|
raw_earthquake |
Raw earthquake data in the dataframe in format of NOAA earthquakes database. |
data frame with cleaned up LOCATION_NAME field
1 2 3 | filename <- system.file("extdata", "earthquakes.tsv.gz", package = "earthquakes")
raw_data <- read_delim(filename, delim = "\t")
data <- eq_location_clean(raw_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.