[Rd] Re: [R] .Last.value or % or ANS or ... (was unix)

bolker@zoo.ufl.edu bolker@zoo.ufl.edu
Mon, 20 Nov 2000 04:45:12 -0500 (EST)


  That's true, but I was looking for a more comprehensive solution (which
would be harder to implement, and have the potential to gobble memory like
crazy) of being able to retrieve an list of past values -- "oh, that
third-to-last answer is the one I needed, I'll take that and put it in
this expression"
  (Besides which, 4 characters are better than 11 but worse than 1 or 2)

  I've moved this to R-devel.

On Tue, 7 Nov 2000, Mark Myatt wrote:

> Yves Gauvreau <cyg@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.
> 
> Mark
> 
> --
> Mark Myatt
> 
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 
> 

-- 
318 Carr Hall                                bolker@zoo.ufl.edu
Zoology Department, University of Florida    http://www.zoo.ufl.edu/bolker
Box 118525                                   (ph)  352-392-5697
Gainesville, FL 32611-8525                   (fax) 352-392-3704

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._