Closed adupaix closed 1 month ago
This is not a bug, when you are using df$a, R uses partial matching to grab a_a.
tmp <- data.frame(a_a = 1:10)
tmp$a
#> [1] 1 2 3 4 5 6 7 8 9 10
Created on 2024-10-22 with reprex v2.1.1
@sda030 is right
The old column of a data frame is somehow "kept" after using the
rename
function. It happens only when the new name starts with the old name.