rep.ir: Replicate ir objects

View source: R/ir.R

rep.irR Documentation

Replicate ir objects

Description

rep.ir is the replicate method for ir objects. Replicating and ir object means to replicate its rows and bind these together to a larger ir object.

Usage

## S3 method for class 'ir'
rep(x, ...)

Arguments

x

An object of class ir.

...

See rep().

Value

An object of class ir with replicated spectra.

Examples

# replicate the sample data
x <- rep(ir::ir_sample_data, times = 2)
x <- rep(ir::ir_sample_data, each = 2)
x <- rep(ir::ir_sample_data, length.out = 3)


ir documentation built on May 2, 2022, 5:06 p.m.