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

前端 未结 4 624
不知归路
不知归路 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:29

    I recently ran into this same problem with a different data set. My tidyverse solution to identifying duplicate column names in the dataframe (df) was:

    tibble::enframe(names(df)) %>% count(value) %>% filter(n > 1)

提交回复
热议问题