restoreData: Restore factors in data.frame as numeric

View source: R/ggPredict.R

restoreDataR Documentation

Restore factors in data.frame as numeric

Description

Restore factors in data.frame as numeric

Usage

restoreData(data)

Arguments

data

A data.frame

Examples

fit=lm(mpg~factor(cyl)*factor(am),data=mtcars)
fit=lm(mpg~wt*factor(am),data=mtcars)
fit=lm(mpg~wt*hp,data=mtcars)
restoreData(fit$model)

predict3d documentation built on May 29, 2024, 4:25 a.m.