[R] Last answer
arun
smartpink111 at yahoo.com
Fri Jul 20 08:05:31 CEST 2012
Hi,
Try this:
ans<-function(){.Last.value}
2+3
[1] 5
ans()
[1] 5
A.K.
----- Original Message -----
From: darnold <dwarnold45 at suddenlink.net>
To: r-help at r-project.org
Cc:
Sent: Friday, July 20, 2012 1:12 AM
Subject: [R] Last answer
Hi,
In Matlab, I can access the last computation as follows:
>> 2+3
ans =
5
>> ans
ans =
5
Anything similar in R?
David
--
View this message in context: http://r.789695.n4.nabble.com/Last-answer-tp4637151.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list