R/print.foldermtg.R

Defines functions print.foldermtg

Documented in print.foldermtg

print.foldermtg <- function(x, classes = TRUE, description = FALSE, features = TRUE,
  topology = FALSE, coordinates = FALSE, ...) {
  
  which.print <- which(names(x) == "mtg.header")
  if (classes) which.print <- c(which.print, which(names(x) == "classes"))
  if (description) which.print <- c(which.print, which(names(x) == "description"))
  if (features) which.print <- c(which.print, which(names(x) == "features"))
  if (topology) which.print <- c(which.print, which(names(x) == "topology"))
  if (coordinates) which.print <- c(which.print, which(names(x) == "coordinates"))
  which.print <- c(which.print,
      which(!(names(x)) %in% c("classes", "description", "features",
      "topology", "coordinates")))
  print(x[which.print], ...)
}

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.