R/Methods-index.R

# S. Hafner
# Modified: 2015 JULY 21

setMethod('[', 'TemplateList', 
   function(x, i=names(x@templates)) {
      x@templates <- x@templates[i]
      return(x)
   }
)

setMethod('[', 'templateScores', 
   function(x, i=names(x@templates)) {
      x@templates <- x@templates[i]
      x@scores <- x@scores[i]
      return(x)
   }
)

setMethod('[', 'detectionList', 
   function(x, i=names(x@templates)) {
      x@templates <- x@templates[i]
      x@scores <- x@scores[i]
      x@peaks <- x@peaks[i]
      x@detections <- x@detections[i]
      return(x)
   }
)

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.