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

About this list Date view Thread view Subject view Author view Other groups

Subject: [R] .Last.value or % or ANS or ... (was unix)
From: Mark Myatt (mark@myatt.demon.co.uk)
Date: Tue 07 Nov 2000 - 23:43:18 EST


Message-ID: <286l3cA2bAC6Ewkg@myatt.demon.co.uk>

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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Thu 01 Feb 2001 - 16:14:31 EST