| tidypredict_sql {tidypredict} | R Documentation |
Returns a SQL query with formula to calculate fitted values
tidypredict_sql(model, con)
model |
An R model or a tibble with a parsed model |
con |
Database connection object. It is used to select the correct SQL translation syntax. |
library(dbplyr) model <- lm(mpg ~ wt + am + cyl, data = mtcars) tidypredict_sql(model, simulate_dbi())