> If a list is used to store "defaults" and you want a safe way to
> change only a few of the values...
> I presume you use this for manipulating the settings of lattice
> parts ?

I use something similar in ggplot (except not recursive):

defaults <- function(x, y)  {
        c(x, y[setdiff(names(y), names(x))])
}

Hadley

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to