Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

drop_user_cols

Drop user columns


Description

Remove from spectral object additional columns that are user defined.

Usage

drop_user_cols(x, keep.also, ...)

## Default S3 method:
drop_user_cols(x, keep.also = NULL, ...)

## S3 method for class 'generic_spct'
drop_user_cols(x, keep.also, ...)

## S3 method for class 'source_spct'
drop_user_cols(x, keep.also = NULL, ...)

## S3 method for class 'response_spct'
drop_user_cols(x, keep.also = NULL, ...)

## S3 method for class 'object_spct'
drop_user_cols(x, keep.also = NULL, ...)

## S3 method for class 'filter_spct'
drop_user_cols(x, keep.also = NULL, ...)

## S3 method for class 'reflector_spct'
drop_user_cols(x, keep.also = NULL, ...)

## S3 method for class 'chroma_spct'
drop_user_cols(x, keep.also = NULL, ...)

## S3 method for class 'calibration_spct'
drop_user_cols(x, keep.also = NULL, ...)

## S3 method for class 'cps_spct'
drop_user_cols(x, keep.also = NULL, ...)

## S3 method for class 'raw_spct'
drop_user_cols(x, keep.also = NULL, ...)

## S3 method for class 'generic_mspct'
drop_user_cols(x, keep.also = NULL, ...)

Arguments

x

An R object

keep.also

character Additionlal columns to preserve.

...

needed to allow derivation.

Value

A copy of x possibly with some columns removed.

Methods (by class)

  • default:

  • generic_spct:

  • source_spct:

  • response_spct:

  • object_spct:

  • filter_spct:

  • reflector_spct:

  • chroma_spct:

  • calibration_spct:

  • cps_spct:

  • raw_spct:

  • generic_mspct:

See Also

Other experimental utility functions: collect2mspct(), thin_wl(), uncollect2spct()


photobiology

Photobiological Calculations

v0.10.10
GPL (>= 2)
Authors
Pedro J. Aphalo [aut, cre] (<https://orcid.org/0000-0003-3385-972X>), Titta K. Kotilainen [ctb] (<https://orcid.org/0000-0002-2822-9734>), Glenn Davis [ctb], Agnese Fazio [ctb]
Initial release
2022-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.