I have tables with one or more columns containing unprintable characters as column name as shown below (in the second and fifth column). These columns occur at random positions in the tables. I am not able to locate these columns through R code to rename it by column position. Please advise.
>test <- structure(list(AA = 1:3, X... = c(23L, 55L, 33L),
BB = c(10, 20, 30),
CC = structure(1:3, .Label = c("a", "b", "c"),
class = "factor"), ï.. = c(12L, 34L, 534L)),
.Names = c("AA", "ï..", "BB", "CC", "ï.."),
class = "data.frame", row.names = c(NA,-3L))
> test
AA ï.. BB CC ï..
1 1 23 10 a 12
2 2 55 20 b 34
3 3 33 30 c 534