Clean up the format of certain columns in a NOAA dataframe
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
data A data frame with cleaned columns
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.