Here's my issue :
df <- data.frame(xabc = c(1,2,3), yabc = c(4,5,6))
Accessing a column of this data.frame is usually performed using df$xabc. While realizing of a typo, it seemed that accessing that exact same column using df$x works as well...
My question is :
- How is this process called ?
- What kind of errors/mistakes could arise if a typo is to be made ?
- If any, is there anything to do to raise an error if the column name after the
$doesn't exist ?
Thanks in advance.