R/utils.R

Defines functions copy_attributes

copy_attributes <- function(target, source, which) {
  for (attr_name in which) {
    attr(target, attr_name) <- attr(source, attr_name)
  }

  return(target)
}

Try the pavo package in your browser

Any scripts or data that you put into this service are public.

pavo documentation built on Sept. 15, 2026, 1:07 a.m.