Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.10.10011071439430.2269-100000@localhost.localdomain>
Date: 2000-11-07T14:47:21Z
From: Bill Simpson
Subject: .Last.value or % or ANS or ... (was unix)
In-Reply-To: <286l3cA2bAC6Ewkg@myatt.demon.co.uk>

On Tue, 7 Nov 2000, Mark Myatt wrote:

> Yves Gauvreau <cyg at sympatico.ca> writes:
> >... and Matlab uses "ans" and Mathematica effectively uses %, %%
> >
> >Would be nice to have something simpler than .Last.value
> 
> Perhaps I am stating the obvious or being extremely stupid but you can
> create a function:
> 
>         lv <- function()
>          {
>          .Last.value
>          }
> 
> And then use lv() whenever you need .Last.value.

How do you say "give me the output I saw three steps ago?" In Mathematica
you would use %%% or Out[-3].

Bill

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._