import_quake_data: Importing the NOAA Signficant Earthquake Database.

Description Usage Arguments Details Value Note Examples

Description

This function imports in the NOAA Signficant Earthquake Database as a tab delimited format and converts it to an R dataframe.

This function imports in the NOAA Signficant Earthquake Database as a tab delimited format and converts it to an R dataframe.

Usage

1
2
3

Arguments

filename

Filename in csv format to be read. The file must be located in the working directory.

filename

Filename in csv format to be read. The file must be located in the working directory.

Details

The entire NOAA dataset can be used (about 5500 records). Follow the instructions on the NOAA site for downloading the entire dataset to a tab delimited file. The NOAA Signficiant Earthquake site is found at: https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1.

The entire NOAA dataset can be used (about 5500 records). Follow the instructions on the NOAA site for downloading the entire dataset to a tab delimited file. The NOAA Signficiant Earthquake site is found at: https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1.

Value

Returns a data frame from a csv file into a dataframd called "results".

Returns a data frame from a csv file into a dataframd called "results".

Note

Exported earthquake data must have a .csv extension. The NOAA data is exported as a tab delimited file called "results" without a file extension designation. Specifically,

1. Data will be downloaded as a tab delimited file called "results" from the NOAA site. 2. The exported tab delimited file is added to the working directory. 3. The tab delimited file is given a .csv extension. 4. Use the R routine to import the tab delimited file to a dataframe.

Exported earthquake data must have a .csv extension. The NOAA data is exported as a tab delimited file called "results" without a file extension designation. Specifically,

1. Data will be downloaded as a tab delimited file called "results" from the NOAA site. 2. The exported tab delimited file is added to the working directory. 3. The tab delimited file is given a .csv extension. 4. Use the R routine to import the tab delimited file to a dataframe.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# Downloaded NOAA file in tab delimited format with a .csv extension.
# Returns a dataframe with the default name "results."
## Not run: 

library(readr)
import_quake_data("results.csv")


## End(Not run)
# Downloaded NOAA file in tab delimited format with a .csv extension.
# Returns a dataframe with the default name "results."
## Not run: 

library(readr)
import_quake_data("results.csv")


## End(Not run)

cowboy2718/QuakeExplorer documentation built on May 26, 2019, 4:41 p.m.