RLum.Results-class | R Documentation |
"RLum.Results"
Object class contains results data from functions (e.g., analyse_SAR.CWOSL).
## S4 method for signature 'RLum.Results'
show(object)
## S4 method for signature 'RLum.Results'
set_RLum(class, originator, .uid, .pid, data = list(), info = list())
## S4 method for signature 'RLum.Results'
get_RLum(object, data.object, info.object = NULL, drop = TRUE)
## S4 method for signature 'RLum.Results'
length_RLum(object)
## S4 method for signature 'RLum.Results'
names_RLum(object)
object |
|
class |
|
originator |
|
.uid |
|
.pid |
|
data |
|
info |
|
data.object |
|
info.object |
|
drop |
|
set_RLum
:
Returns an object from the class RLum.Results
get_RLum
:
Returns:
Data object from the specified slot
list of data objects from the slots if 'data.object' is vector or
an RLum.Results for drop = FALSE
.
length_RLum
Returns the number of data elements in the RLum.Results
object.
names_RLum
Returns the names of the data elements in the object.
show(RLum.Results)
: Show structure of RLum.Results
object
set_RLum(RLum.Results)
: Construction method for an RLum.Results object.
get_RLum(RLum.Results)
: Accessor method for RLum.Results object. The argument data.object allows
directly accessing objects delivered within the slot data. The default
return object depends on the object originator (e.g., fit_LMCurve
).
If nothing is specified always the first data.object
will be returned.
Note: Detailed specification should be made in combination with the originator slot in the receiving function if results are pipped.
length_RLum(RLum.Results)
: Returns the length of the object, i.e., number of stored data.objects
names_RLum(RLum.Results)
: Returns the names data.objects
data
Object of class list containing output data
Objects can be created by calls of the form new("RLum.Results", ...)
.
0.5.2
Kreutzer, S., 2024. RLum.Results-class(): Class 'RLum.Results'. In: Kreutzer, S., Burow, C., Dietze, M., Fuchs, M.C., Schmidt, C., Fischer, M., Friedrich, J., Mercier, N., Philippe, A., Riedesel, S., Autzen, M., Mittelstrass, D., Gray, H.J., Galharret, J., 2024. Luminescence: Comprehensive Luminescence Dating Data Analysis. R package version 0.9.24. https://CRAN.R-project.org/package=Luminescence
The class is intended to store results from functions to be used by
other functions. The data in the object should always be accessed by the
method get_RLum
.
Sebastian Kreutzer, Institute of Geography, Heidelberg University (Germany) , RLum Developer Team
RLum, plot_RLum, merge_RLum
showClass("RLum.Results")
##create an empty object from this class
set_RLum(class = "RLum.Results")
##use another function to show how it works
##Basic calculation of the dose rate for a specific date
dose.rate <- calc_SourceDoseRate(
measurement.date = "2012-01-27",
calib.date = "2014-12-19",
calib.dose.rate = 0.0438,
calib.error = 0.0019)
##show object
dose.rate
##get results
get_RLum(dose.rate)
##get parameters used for the calcualtion from the same object
get_RLum(dose.rate, data.object = "parameters")
##alternatively objects can be accessed using S3 generics, such as
dose.rate$parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.