R/fix_duplicate_cols.R
fix_duplicate_cols.Rd
This function removes duplicate columns from a data frame.
fix_duplicate_cols(df)
A data frame
A data frame with duplicate columns removed
df <- data.frame(a = c(1, 1, 2), b = c(2, 2, 3)) fix_duplicate_cols(df) #> a b #> 1 1 2 #> 2 1 2 #> 3 2 3