eq_read_data: Read earthquake data text file

Description Usage Arguments Value Examples

Description

This function (eq_read_data) reads the text file with earthquake data and creates a data frame. The function assumes that the text file is stored in the working directory. The file is read using the read_delim function from the readr package (read_delim).

Usage

1
eq_read_data(filename)

Arguments

filename

A character string giving the path, name, and extension of a file to read in. Only the name and extension needs to be provided if the file is in the working directory.

Value

This function returns a data frame table containing data for earthquakes.

Examples

1
2
3
4
5
## Not run: 
eq_data <- eq_read_data("signif.txt")
eq_data <- eq_read_data(filename= "signif.txt")

## End(Not run)

drsmd23/Eq documentation built on May 14, 2019, 10:33 a.m.