eq_location_clean: Clean Earthquake Location

Description Usage Arguments Value Examples

Description

This is a simple function that cleans the Earthquake dataset. It removes country from the Location Name variable. If there is no location then, then just Country is supplied.

Usage

1

Arguments

x

Earthquake dataset

Value

This function returns the modified dataset

Examples

1
2
3
4
library(dplyr)
library(readr)
raw_data<-readr::read_tsv(system.file("extdata", "signif.txt", package = "RCapstone"))
eq_clean_data(raw_data) %>% eq_location_clean()

JamasEnright/RCapstone documentation built on May 7, 2019, 9:42 p.m.