R/rmrowfoldert.R

Defines functions rmrow.foldert

Documented in rmrow.foldert

rmrow.foldert <- function(object, name) {
  if (!is.foldert(object))
    stop("rmrow.foldert applies to an object of class 'foldert'.")
  
  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.