fit2call: Get call as string from an object of class glm or lm

Description Usage Arguments Examples

Description

Get call as string from an object of class glm or lm

Usage

1
fit2call(fit)

Arguments

fit

an obkect of class glm

Examples

1
2
3
4
5
form1=paste0("AMD~",paste0(colnames(ExampleData)[3:10],collapse="+"))
fit=glm(as.formula(form1),data=ExampleData,family=binomial)
fit2call(fit)
fit<- lm(mpg~hp*wt,data=mtcars)
fit2call(fit)

cardiomoon/webr2 documentation built on April 24, 2020, 9:44 p.m.