Description Usage Arguments Details Value Author(s) See Also Examples
A generic function as.ESR.Spectrum
for coercing objects
to class "ESR.Spectrum
".
1 |
x |
an object to coerce to an |
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.
as.ESR.Spectrum
returns an ESR.Spectrum
object.
Christoph Burow, University of Cologne (Germany)
R6, R6Class
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.