eq_clean_data: Clean noaa data

Description Usage Arguments Value See Also Examples

View source: R/eq_clean_data.R

Description

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 "_").

Usage

1
eq_clean_data(data_raw, do_clean_location = T, do_clean_headers = T)

Arguments

data_raw

(tbl_df) raw noaa data imported with eq_read_data

do_clean_location

(logical) if true, eq_location_clean is called

do_clean_headers

(logical) if true, columns are renamed properly

Value

clean noaa data is returned as tibble (see tbl_df)

See Also

eq_location_clean, eq_read_data

Examples

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)

philippB-on-git/noaa documentation built on Dec. 22, 2021, 7:49 a.m.