data-raw/earthquakes/earthquakes-dataprep.R

# load packages ----------------------------------------------------------------

library(tidyverse)
library(janitor)

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

earthquakes <- read_csv("data-raw/earthquakes/earthquakes.csv")

# cleaning: clean names -------------------------------

earthquakes <- earthquakes |>
  clean_names()

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

usethis::use_data(earthquakes, overwrite = TRUE)
OpenIntroStat/openintro documentation built on June 4, 2024, 4:19 a.m.