R: Copy attributes

copy_attributes {photobiology} | R Documentation

## 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, ...)

    ## Default S3 method:
    copy_attributes(x, y, which = NULL, ...)

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

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

### Arguments

`x, y` | R objects
`which` | character
`...` | not used
`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`:

- `waveband`:

[Package photobiology version 0.9.21 Index]