eq_data_read: Read file

Description Usage Arguments Value Note Examples

View source: R/earthquake_functions.R

Description

This is a function which reads the NOAA earthquake data from a file into a dataframe and converts it into a tbl_df object

Usage

1
eq_data_read(filename)

Arguments

filename

A character string which is the name of the file with the NOAA earthquake date

Value

This function returns the earthquake data in a tbl_df object

Note

If the filename does not exist, the function stops with an error message.

Examples

1
2
3
4
5
## Not run: 
filename<-system.file("extdata","data.gz",package="ykvdpcap")
eq_data_read(filename)

## End(Not run)

ykv001/ykvdpcap documentation built on May 29, 2019, 2:55 p.m.