Learn R Programming

modelc (version 1.0.0.0)

build_factor_case_statements: Build SQL CASE statements representing the factors in the model

Description

Build SQL CASE statements representing the factors in the model

Usage

build_factor_case_statements(model, first = FALSE)

Arguments

model

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

first

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

Value

A character string representing a SQL CASE statement