eq_clean_data: eq_clean_data

Description Usage Arguments Details Value Examples

Description

This function cleans the NOAA earthquake data extracted from https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1 which was placed in a dataframe by function eq_get_data. The cleanup consists of:

Usage

1

Arguments

data

The dataframe constructed by function 'eq_get_data'

Details

1. Making LONGITUDE and LATITUDE numeric 2. Make a new dataitem DATE using the dataitems YEAR, MONTH and DAY from the dataframe 3. Cleanup the locationname via function eq_clean_data by deleting all text following a ':'

Value

This function returns the cleanedup NOAA earthquake data in a dataframe

Examples

1
2
3
4
## Not run: 
eq_clean_data(eq_get_data("extdata/signif.txt.tsv"))

## End(Not run)

FerrieHeskes/FinalAssignmentR documentation built on May 26, 2019, 7:26 a.m.