Learn R Programming

modelc (version 1.0.0.0)

build_intercept: Get SQL representing the intercept term given the R model and parameter name

Description

Get SQL representing the intercept term given the R model and parameter name

Usage

build_intercept(model, parameter, first = FALSE)

Arguments

model

A list with the same signature as the output of lm or glm

parameter

A parameter name.

first

A logical flag signaling whether the term is the first term in the formula

Value

A SQL character string representing the intercept term in the model