Skip to content
Prev 21993 / 63424 Next

An update method for lists?

On 9/15/06, Deepayan Sarkar <deepayan.sarkar at gmail.com> wrote:
Actually, I do need to allow NULL, because update.trellis does things like

update.trellis <- function(object, ..., par.strip.text, ...)
{
    ...
    object$par.strip.text <- updateList(object$par.strip.text, par.strip.text)
    ...
}

where object$par.strip.text may be initially NULL. But I'll do that
inside a lattice wrapper.
I have checked in

https://svn.r-project.org/R-packages/trunk/lattice/R/modifyList.R
https://svn.r-project.org/R-packages/trunk/lattice/man/modifyList.Rd

which I'm happy to offer for inclusion in utils or wherever might seem
appropriate. I'll upload a version of lattice which includes these
late tomorrow if I don't see any more comments by then.

I've changed the name because I wasn't sure if assignInList might be
confusing, as the semantics are different from those of assign (assign
is like 'fix', while this is more like 'edit'). However, any name is
fine with me.

Deepayan