eq_clean_data: The function Cleans the data for further analysis.

Description Usage Arguments Details Value Examples

View source: R/eq_clean_data.R

Description

The function Cleans the data for further analysis.

Usage

1

Arguments

data

A Dataframe

Details

We would clean the data by

first creating a DATE column, which would be contain the Year,Month and Day merged together in ymd format The column 'Search Parameter' contains no items, hence it would also be removed The COUNTRY column would contain the country entry from the 'Location Name' column The 'Location.Name' would contain the city or region name from the 'Location Name' column

Value

A Dataframe

Examples

1
2
3
4
5
6
## Not run: 
data = system.file('extdata', 'earthquakesData.tsv', package ='masteringSoftwareDevelopmentinR')
data = read_data(data)
cleanedData <- eq_clean_data(data)

## End(Not run)

SanjayShetty01/masteringSoftwareDevelopmentinR documentation built on Dec. 18, 2021, 12:57 p.m.