read_noaa_file: Function to read National Oceanic and Atmospheric...

Description Usage Arguments Value Examples

Description

This function uses readr and dplyr packages. 1. Read file Takes a TAB delimited file as an input filename parameter. If the file exists, this function reads it into dataframe object. 2. Error handling If the file does not exist in the working directory, this function stops with an output message that the file does not exist. 3. Suppressions It suppresses messages and progress bar while reading the file.

Usage

1
read_noaa_file(filename)

Arguments

filename

A filename as input string.

Value

File data is read into a dataframe object.

Examples

1
2
3
4
5
## Not run: 
read_noaa_file("signif.txt")
read_noaa_file(filename="signif.txt")

## End(Not run)

itjmt96/Earthquakes documentation built on May 18, 2019, 5:52 a.m.