Currently, my error statement looks like this:
NAs introduced by coercionError in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
NA/NaN/Inf in 'x'
This is the code that I'm using:
model <- lm(merged$Country.or.region ~ ., data = merged, na.action = na.pass)
I've also tried using na.exclude and na.omit based on some advice given elsewhere online. Am I doing something wrong within the lm parentheses?