[Rd] names function for environments?

Hadley Wickham h.wickham at gmail.com
Thu Jan 29 19:33:15 CET 2015


> Yea, but it is super weird that as.list() filters elements out of the
> environment during coercion.
>
> I think I'm going to look through the uses of ls() inside of the core
> packages, because I suspect that is usually not necessary to extract the
> keys, and there is a cleaner (and probably faster) way to achieve the same
> result.

It would be nice to have a function that generalised over exists("x",
env = y) and "x" %in% names(y).

Hadley


-- 
http://had.co.nz/



More information about the R-devel mailing list