[Rd] stopping finalizers
h.wickham at gmail.com
Fri Feb 15 03:35:37 CET 2013
> There are R objects representing survey data sets, with the data stored in
> a database table. The subset() method, when applied to these objects,
> creates a new table indicating which rows of the data table are in the
> subset -- we don't modify the original table, because that breaks the
> call-by-value semantics. When the subset object in R goes out of scope, we
> need to delete the extra database table.
Isn't subset slightly too early to do this? It would be slightly more
efficient for subset to return an object that creates the table when
you first attempt to modify it.
Chief Scientist, RStudio
More information about the R-devel