R/rmcolfolder.R

Defines functions rmcol.folder

Documented in rmcol.folder

rmcol.folder <- function(object, name) {
  if (!is.folder(object))
    stop("rmcol.folder applies to an object of class 'folder'.")
  
  xf <- lapply(object, function(x)x[!(colnames(x) %in% 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.