eq_data_read: Read file

Description Usage Arguments Value Note Examples

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","earthquakes_data.txt.gz",package="earthquakesViz")
eq_data_read(filename)

## End(Not run)

leigitcode/earthquakesViz documentation built on May 7, 2019, 11:14 a.m.