Merge attributes from x
and y
and copy them to z
.
Methods defined for spectral objects of classes from package 'photobiology'.
merge_attributes(x, y, z, which, which.not, ...)# S3 method for default
merge_attributes(x, y, z, which = NULL, which.not = NULL, ...)
# S3 method for generic_spct
merge_attributes(
x,
y,
z,
which = NULL,
which.not = NULL,
copy.class = FALSE,
...
)
A copy of z
with additional attributes set.
R objects. Objects x
and y
must be of the same class,
z
must be an object with a structure valid for this same class.
character Names of attributes to copy, if NULL all those
relevant according to the class of x
are used as default,
character Names of attributes not to be copied. The
names passed here are removed from the list for which
, which
is most useful when we want to modify the default.
not used
logical If TRUE class attributes are also copied.
merge_attributes(default)
: Default for generic function
merge_attributes(generic_spct)
: