Is in R the last result from the console saved in a variable that I can call?
For example, in Matlab I can use ans
to refrence the last value:
yes there is, it is .Last.value
:
> 4*5
[1] 20
> .Last.value * 5
[1] 100
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With