I have a data.frame
called D
shown HERE. I'm want to use the factanal
function in base R on the first 8
columns of D
.
I'm wondering, however, why I get the following error: 'x' must contain finite values only
while I have set for NA
s to be removed?
D <- read.csv("https://raw.githubusercontent.com/rnorouzian/i/master/SLI.csv", h = T)
pre <- D[1:8] # separate first 8 columns
factanal(pre, factors = 1, scores = "reg", na.action = na.omit)
# Error in cov.wt(z) : 'x' must contain finite values only