Why i am getting an error - that x must be numeric, when my df3 has no non-numeric data. Attached image.
My code is -
df3 <- tibble::add_column(df2, Liking = c("3.85", "5.13", "6.00", "5.73",
"4.91", "5.01", "5.77", "5.35",
"4.39", "5.57", "4.99", "5.94"),
.after = "Cauliflower")
quanti.sup <- df3[1:12, 22, drop = FALSE]
head(quanti.sup)
quanti.coord <- cor(quanti.sup, res.pca$x)
quanti.cos2 <- quanti.coord^2