Learn R Programming

Luminescence (version 0.7.1)

methods_RLum: methods_RLum

Description

Methods for S3-generics implemented for the package 'Luminescence'. This document summarises all implemented S3-generics. The name of the function is given before the first dot, after the dot the name of the object that is supported by this method is given, e.g. plot.RLum.Data.Curve can be called by plot(object, ...), where object is the RLum.Data.Curve object.

Usage

"plot"(x, y, ...)
"plot"(x, y, ...)
"plot"(x, y, ...)
"plot"(x, y, ...)
"plot"(x, y, ...)
"plot"(x, y, ...)
"plot"(x, y, ...)
"hist"(x, ...)
"hist"(x, ...)
"hist"(x, ...)
"hist"(x, ...)
"summary"(object, ...)
"summary"(object, ...)
"summary"(object, ...)
"summary"(object, ...)
"subset"(x, subset, records.rm = TRUE, ...)
"subset"(x, subset, ...)
bin.RLum.Data.Curve(x, ...)
"length"(x, ...)
"length"(x, ...)
"length"(x, ...)
"length"(x, ...)
"dim"(x)
"dim"(x)
"rep"(x, ...)
"names"(x, ...)
"names"(x, ...)
"names"(x, ...)
"names"(x, ...)
"names"(x, ...)
"names"(x)
"row.names"(x, ...)
"as.data.frame"(x, row.names = NULL, optional = FALSE, ...)
"as.data.frame"(x, row.names = NULL, optional = FALSE, ...)
"as.list"(x, ...)
"as.list"(x, ...)
"as.list"(x, ...)
"as.matrix"(x, ...)
"as.matrix"(x, ...)
is.RLum(x, ...)
is.RLum.Data(x, ...)
is.RLum.Data.Curve(x, ...)
is.RLum.Data.Spectrum(x, ...)
is.RLum.Data.Image(x, ...)
is.RLum.Analysis(x, ...)
is.RLum.Results(x, ...)
"merge"(x, y, ...)
"unlist"(x, recursive = TRUE, ...)
"+"(x, y)
"-"(x, y)
"*"(x, y)
"/"(x, y)
"["(x, y, z, drop = TRUE)
"["(x, y, z, drop = TRUE)
"["(x, y, z, drop = TRUE)
"["(x, i, drop = FALSE)
"["(x, i, drop = TRUE)
"["(x, i, j) <- value
"[["(x, i)
"[["(x, i)
"$"(x, i)
"$"(x, i)
"$"(x, i)

Arguments

x
RLum or Risoe.BINfileData (required): input opject
y
integer (optional): the row index of the matrix, data.frame
...
further arguments that can be passed to the method
object
RLum (required): input opject
subset
[subset] expression (required): logical expression indicating elements or rows to keep, this function works in Risoe.BINfileData objects like subset.data.frame, but takes care of the object structure
records.rm
[subset] logical (with default): remove records from data set, can be disabled, to just set the column SET to TRUE or FALSE
row.names
logical (with default): enables or disables row names (as.data.frame)
optional
logical (with default): logical. If TRUE, setting row names and converting column names (to syntactic names: see make.names) is optional (see as.data.frame)
recursive
logical (with default): enables or disables further subsetting (unlist)
z
integer (optional): the column index of the matrix, data.frame
drop
logical (with default): keep object structure or drop it
i
character (optional): name of the wanted record type or data object or row in the RLum.Data.Curve object
j
integer (optional): column of the data matrix in the RLum.Data.Curve object
value
numeric (required): numeric value which replace the value in the RLum.Data.Curve object

Details

The term S3-generics sounds complicated, however, it just means that something has been implemented in the package to increase the usability for users new in R and who are not familiar with the underlying RLum-object structure of the package. The practical outcome is that operations and functions presented in standard books on R can be used without knowing the specifica of the R package 'Luminescence'. For examples see the example section.

Examples

Run this code

##load example data
data(ExampleData.RLum.Analysis, envir = environment())


##combine curve is various ways
curve1 <- IRSAR.RF.Data[[1]]
curve2 <-  IRSAR.RF.Data[[1]]
curve1 + curve2
curve1 - curve2
curve1 / curve2
curve1 * curve2


##`$` access curves
IRSAR.RF.Data$RF

Run the code above in your browser using DataLab