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

View source: R/to_sql.R

tidypredict_sqlR Documentation

Returns a SQL query with formula to calculate fitted values

Description

Returns a SQL query with formula to calculate fitted values

Usage

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

library(dbplyr)

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

tidypredict documentation built on May 28, 2022, 1:06 a.m.