R equivalent of python “_”?

前端 未结 1 370
耶瑟儿~
耶瑟儿~ 2020-12-28 13:15

Python has an identifier _ that allows for storing the result of the last evaluation which makes it great for speeding up data exploration and introspection.

相关标签:
1条回答
  • 2020-12-28 13:48

    Tis a faff to type, but .Last.value:

    > sqrt(2)
    [1] 1.414214
    > .Last.value
    [1] 1.414214
    
    0 讨论(0)
提交回复
热议问题