tidypredict_sql: Returns a SQL query with formula to calculate fitted values

Description Usage Arguments Examples

View source: R/to_sql.R

Description

Returns a SQL query with formula to calculate fitted values

Usage

1
tidypredict_sql(model, con)

Arguments

model

An R model or a list with a parsed model

con

Database connection object. It is used to select the correct SQL translation syntax.

Examples

1
2
3
4
library(dbplyr)

model <- lm(mpg ~ wt + am + cyl, data = mtcars)
tidypredict_sql(model, simulate_dbi())

edgararuiz/tidypredict documentation built on Oct. 2, 2021, 8:04 a.m.