Equivalent of matlab 'ans' in R [duplicate]
In matlab, you can re-use the result of the (non affected) preceding calculous: it is stored in variable ans. Does R has something equivalent ?
.Last.value
See also this and this
The value of the internal evaluation of a top-level R expression
is always assigned to .Last.value
before further processing.
精彩评论