开发者

How to assign the result of the previous expression to a variable?

开发者 https://www.devze.com 2023-01-15 22:49 出处:网络
Suppose I\'m using R\'s interactive console, and I\'ve just done something like this: long_running_command()

Suppose I'm using R's interactive console, and I've just done something like this:

long_running_command()

That long-running command returns a value, and I've just realized that I wanted to assign that value to a variable instead of discard it. So ho开发者_如何学JAVAw can I get that value without running the command again? Is there a command like this?

result = get_last_return_value()


.Last.value is an answer.

It was answered once but you have better title.

0

精彩评论

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