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

Yves Gauvreau cyg at sympatico.ca
Tue Nov 7 15:23:06 CET 2000


Good suggestion and simple enough.

I had in mind something more like "version" which doesn't require the "()",
but your idea is excellent.

Regards

YG

----- Original Message -----
From: "Mark Myatt" <mark at myatt.demon.co.uk>
To: "Yves Gauvreau" <cyg at sympatico.ca>
Cc: "Bill Simpson" <wsi at gcal.ac.uk>; <r-help at stat.math.ethz.ch>
Sent: Tuesday, November 07, 2000 8:43 AM
Subject: [R] .Last.value or % or ANS or ... (was unix)


> 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.
>
> 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list