Saturday, June 25, 2011

R - get back the last result (if it was forgotten to assign it)

R stores the result of the LAST operation in .Last.value; So, for example, if you read a file into R and forgot to assign it,
x <- .Last.value 
helps you, without reading it again..., it is the same for the result of every other function

No comments :

Post a Comment