开发者

Equivalent of matlab 'ans' in R [duplicate]

This question already has an answer here: How to assign the result of the previous expression to a variable? (1 answer) 开发者_JS百科 Closed 5 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜