Description Usage Arguments Value See Also Examples
View source: R/eq_clean_data.R
Clean raw noaa data that was imported with eq_read_data. DATE, LONGITUDE and LATITUDE are reformatted.
By default LOCATION NAME is cleaned via eq_location_clean and column names are reformatted to match naming convention (capitalize & replace space with "_").
1 | eq_clean_data(data_raw, do_clean_location = T, do_clean_headers = T)
|
data_raw |
(tbl_df) raw noaa data imported with |
do_clean_location |
(logical) if true, |
do_clean_headers |
(logical) if true, columns are renamed properly |
clean noaa data is returned as tibble (see tbl_df)
eq_location_clean, eq_read_data
1 2 3 4 5 6 | ## Not run:
path <- system.file("extdata", "noaa_earthquakes.tsv", package = "noaa")
eq_read_data(path) %>%
eq_clean_data(do_clean_headers = F)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.