R/zzz.R

Defines functions pluck

pluck <- function(x, name, type) {
  if (missing(type)) {
    lapply(x, "[[", name)
  } else {
    vapply(x, "[[", name, FUN.VALUE = type)
  }
}
sckott/dendro documentation built on May 29, 2019, 3:59 p.m.