data-raw/major_earthquakes/major_earthquakes-dataprep.R

library(readr)
library(dplyr)
library(janitor)

# load data ---------------------------------------------------------------------

major_earthquakes <- read.csv("data-raw/major_earthquakes/major_earthquakes.csv")

# cleaning: remove X variable, clean names -------------------------------

major_earthquakes <- major_earthquakes %>% 
  select(-X) %>% 
  clean_names()

# save --------------------------------------------------------------------------

usethis::use_data(major_earthquakes, overwrite = TRUE)
npaterno/data_hunter documentation built on July 22, 2022, 10:20 a.m.