Learn R Programming

monitoR (version 1.0.7)

getTemplates: Extract a Template List

Description

Use this function to extract template lists from '>templateScores or '>detectionList objects.

Usage

getTemplates(object, which.ones = names(object@templates))

Arguments

object

The templateScores or detectionList object that contains the templates that are to be extracted.

which.ones

Which templates should be included? A character vector of templates names, or an integer vector. Default is all templates.

Value

A template list of class corTemplateList or binTemplateList.

Details

This function would typically be used to extract and save a complete set of templates from a '>detectionList object if templateCutoff has been used to modify the template list after scores were calculated. getTemplates could also be used to extract a subset of templates present in a template list, but indexing with square brackets is an easier approach.

See Also

makeCorTemplate, makeBinTemplate, templateCutoff, templateComment