Does anyone know how to properly edit this MFA code
res.mfa <- MFA(DF1, group=c(3,4,5,6,7,8,9), type=c("n",rep("s",5)), ncp=5, name.group=c("RPE","RPC","Chla","CX","N","C","SGR"), num.group.sup=c(2), graph=FALSE)
Error in if ((type[i] == "n") && (!(i %in% num.group.sup))) nature.group <- c(nature.group, : missing value where TRUE/FALSE needed
fviz_mfa_var(res.mfa, "quanti.var", palette = "jco", col.var.sup = "violet", repel = TRUE)
dataframe the dataframe in the image below is what I am working on. the first column is id and I first eliminate that then make the second column a factor so that when I add the hull/ellipse on the graph later i can group them by this factor. the remaining 7 columns are the response variables of my experiment to be analyzed. I ran a PCA on the same data before but upon further review that was not the best idea. I am very green in this field, so any and all assistance/advice is greatly appreciated.