copy.attributes: Copy Attributes

Description Usage Arguments Author(s)

View source: R/analysis.R

Description

This function copies attributes from one object and assigns them to another.

Usage

1
2
3
4
5
6
copy.attributes(
  from,
  to,
  delete = c("names", "row.names", "class", "dim", "dimnames"),
  delete2 = NULL
)

Arguments

from

object from which the attributes should be taken

to

object to which the attributes should be written

delete

attributes which should not be copied. By default this are class specific attributes which might cause problems if copied to another object. But you can add or remove attributes from the vector.

delete2

Identical to delete and just added for convenience for the case that you want to delete additional attributes but do not want to repeat the vector given in delete. In the function both vectors, delete and delete2, are just merged to one deletion vector.

Author(s)

Jan Philipp Dietrich dietrich AT pik-potsdam.de


pinusm/Mmisc documentation built on June 5, 2021, 7:59 a.m.