Description Usage Arguments Value Examples
View source: R/eq_clean_data.R
eq_clean_data
takes a NOAA data frame and returns a cleaned
data.frame
. The clean data.frame
contains
a date column, of type Date
, created by uniting the year, month and
day columns from the given, raw data. The LATITUDE
and LONGITUDE
are converted to numeric
types.
1 | eq_clean_data(raw_data)
|
raw_data |
is a NOAA
|
a data.frame
containing the cleaned data.
1 2 3 4 5 6 7 | library(data.table)
library(magrittr)
library(quake)
data_file_name <- system.file("extdata", "earthquakes.tsv", package = "quake")
clean_data <- fread(data_file_name) %>% eq_clean_data
clean_data
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.