Why PCA code is not running, the matrix is 0х0?

df_scaled <- as.data.frame(scale(df))
features <- df_scaled[, -10]
target <- df_scaled[, 10]
pc <- PCA(features, graph = FALSE)

why is not the code functioning?

Error in eigen(crossprod(t(X), t(X)), symmetric = TRUE) : 0х0 matrix

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.