Say I have data.frame a
a
I use
m.fit <- lm(col2 ~ col3 * col4, na.action = na.exclude)
col2 has some <
col2
I got this error when I inverted the arguments when calling reformulate and use the formula in my lm call without checking, so I had the wrong predictor and response variable.
reformulate
lm