Re: [R] last result

2009-01-24 Thread Carl Witthoft
Barry Rowlingson wrote: > 2009/1/23 Jorge Ivan Velez : > >> See ?.Last.value Or put this inside your Rprofile: makeActiveBinding("prev", function(...) .Last.value, .GlobalEnv) I like this 'cause I don't need to include the "()" for prev to work properly.

Re: [R] last result

2009-01-23 Thread Nick Matzke
Thanks!!! Best R list ever... Cheers, Nick Barry Rowlingson wrote: 2009/1/23 Jorge Ivan Velez : See ?.Last.value But don't do that right after you've done the calculation! You get *one* chance with .Last.value: # here comes my important numbers... > runif(10) [1] 0.7685472 0.2301233

Re: [R] last result

2009-01-23 Thread Barry Rowlingson
2009/1/23 Jorge Ivan Velez : > See ?.Last.value But don't do that right after you've done the calculation! You get *one* chance with .Last.value: # here comes my important numbers... > runif(10) [1] 0.7685472 0.2301233 0.3053993 0.5185696 0.3345997 0.1544350 0.2663696 [8] 0.3507546 0.5784

Re: [R] last result

2009-01-23 Thread Sarah Goslee
Yikes! Try .Last.value Sarah On Fri, Jan 23, 2009 at 5:02 PM, Nick Matzke wrote: > Hi, > > Let's say one has just run a command line command that took an hour and > produced a huge matrix as an output. However, one forgot to store the > output in a variable. > > Is there a hidden variable some

Re: [R] last result

2009-01-23 Thread Jorge Ivan Velez
Dear Nick, See ?.Last.value HTH, Jorge On Fri, Jan 23, 2009 at 5:02 PM, Nick Matzke wrote: > Hi, > > Let's say one has just run a command line command that took an hour and > produced a huge matrix as an output. However, one forgot to store the > output in a variable. > > Is there a hidden

[R] last result

2009-01-23 Thread Nick Matzke
Hi, Let's say one has just run a command line command that took an hour and produced a huge matrix as an output. However, one forgot to store the output in a variable. Is there a hidden variable somewhere that stores the result, so that one doesn't have to re-run the analysis for an hour?