Learn R Programming

ddeploy (version 1.0.4)

strip_model: Strip objects unnecessary for prediction with class.

Description

Strip objects unnecessary for prediction with class.

Usage

strip_model(model_object, model_class = NULL)

Arguments

model_object
the model to strip pre-deployment.
model_class
model class string e.g. "lm", "glm", "gam" ...

Value

None

Examples

Run this code
example_data <- as.data.frame(cbind(gl(3,50),rnorm(150)));names(example_data) <- c("x","y")
example_fit  <- lm(y~x,data=example_data)
strip_model(example_fit,"lm")

Run the code above in your browser using DataLab