0

I'm using a dataframe named DataUniv composed of 13 variables. When I try to run a correspondance analysis using FactoMineR :

dataUniv.CA = CA(dataUniv[,2:7],
             col.sup=c(1,8:13))

It sends me back this error :

Error in `[.data.frame`(Xtot, , col.sup) : undefined columns selected

I don't really understand why it sent me back this type of error, as it seems that those columns are effectively defined, if I run :

View(dataUniv[,2:7])
View(dataUniv[,c(1,8:13)])

It returns something good...

GaëtanLF
  • 101
  • 10
  • 1
    Please provide a sample of your data in order to make the error reproducible. – Phil Dec 20 '20 at 17:18
  • Here is the CSV file I'm working on : https://drive.google.com/file/d/12r0WTaX2VPK5Vpovga_kT3_PfhYaXWpZ/view?usp=sharing – GaëtanLF Dec 20 '20 at 17:30
  • I finally found it : col.sup argument must contain columns that are included in the first argument. – GaëtanLF Dec 20 '20 at 17:55

1 Answers1

0

I finally found it: the col.sup argument must contain columns that are included in the first argument.

tdy
  • 36,675
  • 19
  • 86
  • 83
GaëtanLF
  • 101
  • 10