Skip to content
Prev 220836 / 398500 Next

What's data() for?

On Fri, 14 May 2010, Duncan Murdoch wrote:

            
But

data("pima", package="faraway")

will.  And if you do that you can rm(pima); gc() and completely remove 
the object from the session, something you cannot do with lazy-loading 
of data.

That is I think the main attraction of not using lazy-loading for 
datasets that will be used for only a small part of a session.