lm function (though less features
supported).computeLm(channel, tableName, expr, where = NULL,
test = FALSE)odbcConnectWHERE clause).computeLm are specified symbolically. A
typical model has the form response ~ terms where
response is the (numeric) column and terms is a series of
column terms which specifies a linear predictor for
response. A terms specification of the form first +
second indicates all the terms in first together with
all the terms in second with duplicates removed. A
specification of the form first:second and
first*second (interactions) are not supported yet.model1 = computeLm(channel=conn, tableName="batting_enh", expr= ba ~ rbi + bb + so)Run the code above in your browser using DataLab