Description Usage Arguments Value Examples
View source: R/clean_functions.R
The function eq_clean_data
cleans a raw NOAA data frame. In more
detail, it adds a date column, converts latitude and longitude columns to
numeric, and cleans the location name column.
1 |
data |
A raw NOAA data frame. |
A clean NOAA data frame.
1 2 3 4 5 6 7 8 | # import libraries
library(dplyr)
library(readr)
# set working directory
setwd(system.file("extdata", package = "noaa"))
# read and clean NOAA data
data <- read_delim("signif.txt", "\t") %>%
eq_clean_data()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.