as.ESR.Spectrum: Coercion from and to ESR.Spectrum

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/generics.R

Description

A generic function as.ESR.Spectrum for coercing objects to class "ESR.Spectrum".

Usage

1

Arguments

x

an object to coerce to an ESR.Spectrum

Details

as.ESR.Spectrum currently includes methods for data.frame objects.

Methods for coercing objects of class "ESR.Spectrum" to other classes currently include: as.data.frame, as.data.frame, as.list, as.matrix. Coercion from ESR.Spectrum to any of these classes converts the raw measurement data ($data attribute) to respective class.

Value

as.ESR.Spectrum returns an ESR.Spectrum object.

Author(s)

Christoph Burow, University of Cologne (Germany)

See Also

R6, R6Class

Examples

1
2
3
4
5
6
7
8
9
## coercion to ESR.Spectrum:
## default method
x <- as.ESR.Spectrum(data.frame(seq(3350, 3450, length.out = 1024), 
                                runif(1024, -1000, 1000)))

## coercion from ESR.Spectrum:
as.matrix(x)
as.data.frame(x)
as.list(x)

tzerk/ESR documentation built on May 20, 2019, 1:12 p.m.