data-raw/movies/movies-dataprep.R

library(readr)
library(dplyr)
library(stringr)

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

raw_data <- read_delim(here::here("data-raw/movies/movies.txt"), "\t")

# cleaning: none required

movies <- raw_data |>
  janitor::clean_names()

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