Description Usage Arguments Details Value Note Examples
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.
1 2 3 |
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. |
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.
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".
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.