R/getTemplates.R

Defines functions getTemplates

Documented in getTemplates

# For extracting templates from any object that contains them
# Modified: 2013 JUNE 12

getTemplates <-
function(
   object, 
   which.ones=names(object@templates)
) {

   if(class(object@templates[[1]]) == 'binTemplate') return(new('binTemplateList', templates=object@templates[which.ones]))
   if(class(object@templates[[1]]) == 'corTemplate') return(new('corTemplateList', templates=object@templates[which.ones]))

}

Try the monitoR package in your browser

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

monitoR documentation built on May 1, 2019, 6:28 p.m.