eq_clean_data: Takes the output from 'eq_location_clean', expects TSUNAMI,...

Description Usage Arguments Examples

View source: R/data_cleaning.R

Description

Takes the output from eq_location_clean, expects TSUNAMI, VOLCANO, YEAR, MONTH, DAY, HOUR, MINUTE, and SECOND columns.

Usage

1
eq_clean_data(rawdata = NULL)

Arguments

rawdata

optional, dataframe outputted from eq_read_data or eq_location_clean

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

# Clean data and filter out entries with no TOTAL_DEATHS data
data <- eq_clean_data() %>%
    dplyr::filter(!is.na(TOTAL_DEATHS)) %>%
    dplyr::select(DATE, YEAR, COUNTRY, REGION, LONGITUDE, LATITUDE, MAG, TOTAL_DEATHS) %>%
    tidyr::drop_na()

## End(Not run)

rsizem2/noaa-earthquakes documentation built on Dec. 22, 2021, 7:17 p.m.