model_writer: Write a list of models to RDS files

Description Usage Arguments Value Examples

Description

A function to save models from the list of models fitted with the fit_with()-function. The function saves one RDS file for each model to the provided path

Usage

1
model_writer(model_container, save_path = "./", prefix = "")

Arguments

model_container

A list of model objects.

save_path

File destination for the RDS-files to be saved in

prefix

Custom Prefix to the file names.

Value

Nothing

Examples

1
2
3
4
5
## Not run: 
models <- modelr::fit_with(mtcars, lm, "mpg ~ hp")
model_writer(models)

## End(Not run)

tgraf0/xlincHelpers documentation built on May 5, 2019, 1:36 a.m.