开发者

Equivalent of matlab 'ans' in R [duplicate]

开发者 https://www.devze.com 2023-01-04 08:13 出处:网络
This question already has an answer here: How to assign the result of the previous expression to a variable?
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

精彩评论

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