Description Usage Arguments Details Value Examples
Clean up the format of certain columns in a NOAA dataframe
1 |
data |
A data frame with raw data from NOAA (see details) |
This function takes raw NOAA data frame (you can download a sample from here)
and returns a clean data frame with:
- A DATE column created by uniting the year, month, day and converting it to the Date class
- LATITUDE and LONGITUDE columns converted to numeric class
- LOCATION_NAME is modified removing the country name from it and changed to title case (see eq_location_clean
)
data A data frame with cleaned columns
1 2 3 4 5 | ## Not run:
data <- readr::read_delim("earthquakes.tsv.gz", delim = "\t")
clean_data <- eq_clean_data(data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.