eq_select_data: Select Data

Description Usage Arguments Value Examples

View source: R/eq_cleaning.R

Description

eq_select_data selects a subset of the variables in the earthquakes dataset needed for analysis and visualization. It selects the ID, DATE, COUNTRY, LOCATION_NAME, LONGITUDE, LATITUDE, EQ_PRIMARY and TOTAL_DEATHS variables.

Usage

1

Arguments

df

A data frame containing the earthquake data.

Value

A data frame containing the selected subset of earthquake data. If an error or warning occurs, a message will be printed to the console and the function will return NULL.

Examples

1
2
3
4
## Not run: 
df <- eq_select_data(df)

## End(Not run)

dtminnick/earthquake documentation built on Nov. 4, 2019, 11:04 a.m.