R/getcolfoldert.R

Defines functions getcol.foldert

Documented in getcol.foldert

getcol.foldert <- function(object, name) {
  if (!is.foldert(object))
    stop("getcol.foldert applies to an object of class 'foldert'.")
  
  xf <- lapply(object, "[", name)
  attributes(xf) <- attributes(object)
  
  return(xf)
}

Try the dad package in your browser

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

dad documentation built on Aug. 30, 2023, 5:06 p.m.