0

I am having a trouble finding whats the problem in the code....I used multiple function with my dataset(CSV file contains multiple quant/quali variables) but always it tells me the following error in the last line on code

Error in .rowNamesDF<-(x, value = value) : duplicate 'row.names' are not allowed`

I dont think there is a duplicate rows in y dataset, I even checked that with the function (duplicated)...

library(FactoMineR)
library(factoextra)
data=read.csv("D:/ESSAI/1ere/Stage/AFDM/données.csv")

data1=data[,c(12:26)]
res.famd <- FAMD(data1, graph = FALSE)

eig.val <- get_eigenvalue(res.famd)
fviz_screeplot(res.famd)

var <- get_famd_var (res.famd)
fviz_famd_var (res.famd, repel = TRUE)
fviz_contrib (res.famd, "var", axes = 1)
fviz_contrib (res.famd, "var", axes = 2)
quanti.var <- get_famd_var(res.famd, "quanti.var")
fviz_famd_var(res.famd, "quanti.var", repel = TRUE,
              col.var = "black")
Oliver
  • 7,303
  • 3
  • 12
  • 35
B1OS B1OS
  • 1
  • 1
  • Welcome to SO. You should edit your post with an exemple of `data`, so that we can try to reproduce your problem : https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example I recommend that you add the output of `dput(data)` to your post, it should be something like `structure(...)` – Basti Jul 23 '21 at 11:10

0 Answers0