Description Usage Arguments Value Examples
View source: R/clean_functions.R
The function eq_location_clean
cleans the location names of
a raw NOAA data frame by stripping out the country name and converting the
location names to title case.
1 |
data |
A raw NOAA data frame. |
A NOAA data frame with a cleaned location name column.
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_location_clean()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.