R/subset.seroincidence.ests.R

Defines functions `[.seroincidence.by`

#' Extract or replace parts of a `seroincidence.by` object
#'
#' @param x the object to subset/replace elements of
#' @param i the indices to subset/replace
#' @param ... passed to `[.list`
#' @returns the subset specified
#' @export
#'
`[.seroincidence.by` <- function(x, i, ...) {
  r <- NextMethod("[")
  mostattributes(r) <- attributes(x)
  names(r) <- names(x)[i]
  r
}

Try the serocalculator package in your browser

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

serocalculator documentation built on April 3, 2025, 7:35 p.m.