cbind.drift: Combine DRIFT-spectra by columns

Description Usage Arguments Value See Also Examples

View source: R/drift_cbind.R

Description

Take a sequence of S3-class drift, vector, matrix or data-frame arguments and combine by columns. Those columns are thus considered measurement cells. This is a S3-method for generic function cbind.

Usage

1
2
## S3 method for class 'drift'
cbind(..., deparse.level = 1)

Arguments

...

first, object(s) of S3-class drift, then vectors or matrices. These can be given as named arguments.

deparse.level

integer controlling the construction of column names:

0

constructs no column names,

1

default, column names are combined as they are,

2

column names are enumerated.

Value

An object of S3-class drift.

See Also

Other drift: as.data.frame.drift(), channel(), coal_drift(), diff.drift(), median.drift(), plot.drift(), read.drift(), slice(), write.drift()

Examples

1
2
3
4
5
 # Light unit tests:
 x <- coal_drift("X")
 oc <- coal_drift("OC")
 s <- cbind(x, 4, oc, 2*rnorm(nrow(x)))
 stopifnot(class(s) == "drift")

omega1x/spectrotest documentation built on Oct. 1, 2020, 4 p.m.