data-raw/demo/demo-dataprep.R

library(readr)
library(janitor)

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

demo <- read_csv(here::here("data-raw/demo/demo.csv"))

# cleaning: clean names using janitor

demo_data <- demo %>% 
  clean_names()

# Save -------------------------------------------------------------------------------

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