I have a dataframe with 50 columns having column names that have this structure.
X..Age <- c(23, 34, 24, 10)
..Region <- c("A", "B","C","D")
X.span.style..display.none..Salary <- c(100,200, 300, 400)
X.....code <- c(14, 12, 13, 15)
DF <- data.frame(X..Age, ..Region, X.span.style..display.none..Salary, X.....code)
I want to remove the strings X.., .., X.span.style..display.none.. & X..... from the column names. How do I go about this?