d1 <- data.frame(a=c(1,2,3))
d2 <- data.frame(a=c(3,4,5))
d3 <- cbind(d1,d2)
doesn't return an error, and an inspection of the environment in RStudio displays two columns with the same name.
If I type:
d3$a
The first column is selected. How to select the second by name?