#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
Another possibility to find duplicate column names using Base R would be using duplicated:
colnames(df)[which(duplicated(colnames(df)))]