photobiology (version 0.9.26)

copy_attributes: Copy attributes

Description

Copy attributes from x to y. Methods defined for spectral and waveband objects of classes from package 'photobiology'.

Usage

copy_attributes(x, y, which, ...)

# S3 method for default copy_attributes(x, y, which = NULL, ...)

# S3 method for generic_spct copy_attributes(x, y, which = NULL, which.not = NULL, copy.class = FALSE, ...)

# S3 method for generic_mspct copy_attributes(x, y, which = NULL, which.not = NULL, copy.class = FALSE, ...)

# S3 method for waveband copy_attributes(x, y, which = NULL, ...)

Arguments

x, y

R objects

which

character Names of attributes to copy, if NULL all those relevant according to the class of x is used as defaul,

...

not used

which.not

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.

copy.class

logical If TRUE class attributes are also copied.

Value

A copy of y with additional attributes set.

Methods (by class)

  • default: Default for generic function

  • generic_spct:

  • generic_mspct:

  • waveband: