mutate() is trying to extract using the value of a global variable when using the dollar sign operator

后端 未结 1 2039
眼角桃花
眼角桃花 2021-02-19 12:35

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

相关标签:
1条回答
  • 2021-02-19 13:16

    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

    0 讨论(0)
提交回复
热议问题