[Rd] Converting an environment to a list: mget vs. as.list

Hadley Wickham h.wickham at gmail.com
Mon Apr 22 15:14:26 CEST 2013


Hi all,

An interesting discovery: if you want to convert an environment to a
list, and you already know the names of the objects in the
environment, using mget is about twice as fast as using as.list on the
environment.

https://gist.github.com/hadley/5434786

Hadley




--
Chief Scientist, RStudio
http://had.co.nz/



More information about the R-devel mailing list