merge_attributes: Merge and copy attributes

Description Usage Arguments Value Methods (by class)

View source: R/copy.attr.R

Description

Merge attributes from x and y and copy them to z. Methods defined for spectral objects of classes from package 'photobiology'.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
merge_attributes(x, y, z, which, which.not, ...)

## Default S3 method:
merge_attributes(x, y, z, which = NULL, which.not = NULL, ...)

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

Arguments

x, y, z

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.

which

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

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.

...

not used

copy.class

logical If TRUE class attributes are also copied.

Value

A copy of z with additional attributes set.

Methods (by class)


photobiology documentation built on Aug. 28, 2020, 1:11 a.m.