R/rmrowfolder.R

Defines functions rmrow.folder

Documented in rmrow.folder

rmrow.folder <- function(object, name) {
  if (!is.folder(object))
    stop("rmrow.folder applies to an object of class 'folder'.")
  
  xf <- list()
  for (k in 1:length(object)) {
    objk <- object[[k]]
    xf[[k]] <- objk[!(rownames(objk) %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.