inst/extdata/R/analysis.R

mykeep()

# Load data
dat <- readRDS(paths$pd("prepped_data"))


# run a model
mod <- lm(mpg ~ am + cyl + disp, data = dat)

# get coefficients
tmod <- tidy(mod)

# save coefficients
saveRDS(tmod, paths$td("tmod"))

# clear the working space
mykeep()
CTU-Bern/CTUtemplate documentation built on Feb. 27, 2025, 7:21 p.m.