Using R, getting a “Can't bind data because some arguments have the same name” using dplyr:select

前端 未结 4 603
不知归路
不知归路 2021-01-05 03:48
#use readtable to create data frames of following unzipped files below
x.train <- read.table("UCI HAR Dataset/train/X_train.txt")
subject.train <- re         


        
4条回答
  •  逝去的感伤
    2021-01-05 04:18

    Another possibility to find duplicate column names using Base R would be using duplicated:

    colnames(df)[which(duplicated(colnames(df)))]
    

提交回复
热议问题