The .Last.value command in R is useful for quick calculations, but the name is pretty long and difficult to write (probably because .Last.value
should not be overwritten). Therefore, it is often faster to copy-paste the number from line above.
124/pi
# [1] 39.47043
.Last.value^2
# [1] 1557.915
I know that it is possible to do partial matching for functions, but for .Last.value
this does not seem to work:
1+1
# [1] 2
.Last.v + 1
# Error: object '.Last.v' not found
Is there a handier (shorter/faster/better) way to draw the last value from R console?