I\'m getting funny results using mutate with a $ extraction when there happens to be a variable in the global environment with the same name as the ele
mutate
$
As @clbieganek pointed out, this is a bug. It is not yet fixed (as of dplyr version 4.3)
Possible fix as suggested in comments:
$'y'
This is the issue that tracks this general problem: https://github.com/hadley/dplyr/issues/1400