R/wdSetProperty.R

wdSetProperty <-
function (property,value,object=wdapp[['Selection']],wdapp=.R2wd)
{
    if (length(property)>1)
      for (prop in property[1:(length(property)-1)]) {
            if (is.character(prop)) object<-object[[prop]]
            if (is.numeric(prop)) object$item(prop)
        }
        object[[property[length(property)]]]<-value
    invisible()
}

Try the R2wd package in your browser

Any scripts or data that you put into this service are public.

R2wd documentation built on May 2, 2019, 8:54 a.m.