-
Notifications
You must be signed in to change notification settings - Fork 8
/
RLum.Results-class.Rd
171 lines (125 loc) · 5.44 KB
/
RLum.Results-class.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RLum.Results-class.R
\docType{class}
\name{RLum.Results-class}
\alias{RLum.Results-class}
\alias{show,RLum.Results-method}
\alias{set_RLum,RLum.Results-method}
\alias{get_RLum,RLum.Results-method}
\alias{length_RLum,RLum.Results-method}
\alias{names_RLum,RLum.Results-method}
\alias{view,RLum.Results-method}
\title{Class \code{"RLum.Results"}}
\usage{
\S4method{show}{RLum.Results}(object)
\S4method{set_RLum}{RLum.Results}(class, originator, .uid, .pid, data = list(), info = list())
\S4method{get_RLum}{RLum.Results}(object, data.object, info.object = NULL, drop = TRUE)
\S4method{length_RLum}{RLum.Results}(object)
\S4method{names_RLum}{RLum.Results}(object)
\S4method{view}{RLum.Results}(object, element = 1, ...)
}
\arguments{
\item{object}{an object of class \linkS4class{RLum.Results}}
\item{class}{\code{\link{set_RLum}}; \link{character} (\strong{required}):
name of the \code{RLum} class to create}
\item{originator}{\code{\link{set_RLum}}; \link{character} (\emph{automatic}):
contains the name of the calling function (the function that produces this object);
can be set manually.}
\item{.uid}{\code{\link{set_RLum}}; \link{character} (\emph{automatic}):
sets an unique ID for this object using the internal C++ function \code{create_UID}.}
\item{.pid}{\code{\link{set_RLum}}; \link{character} (\emph{with default}):
option to provide a parent id for nesting at will.}
\item{data}{\code{\link{set_RLum}}; \link{list} (\emph{optional}):
a list containing the data to
be stored in the object}
\item{info}{\code{\link{set_RLum}}; \link{list} (\emph{optional}):
a list containing additional info data for the object}
\item{data.object}{\code{\link{get_RLum}}; \link{character} or \link{numeric}:
name or index of the data slot to be returned}
\item{info.object}{\code{\link{get_RLum}}; \link{character} (\emph{optional}):
name of the wanted info element}
\item{drop}{\code{\link{get_RLum}}; \link{logical} (\emph{with default}):
coerce to the next possible layer (which are data objects, \code{drop = FALSE}
keeps the original \code{RLum.Results}}
\item{element}{\link{integer} (\emph{with default}): index of the element to display}
\item{...}{other arguments that might be passed}
}
\value{
\strong{\code{set_RLum}}:
Returns an object from the class \linkS4class{RLum.Results}
\strong{\code{get_RLum}}:
Returns:
\enumerate{
\item Data object from the specified slot
\item \link{list} of data objects from the slots if 'data.object' is vector or
\item an \linkS4class{RLum.Results} for \code{drop = FALSE}.
}
\strong{\code{length_RLum}}
Returns the number of data elements in the \code{RLum.Results} object.
\strong{\code{names_RLum}}
Returns the names of the data elements in the object.
}
\description{
Object class contains results data from functions (e.g., \link{analyse_SAR.CWOSL}).
}
\section{Methods (by generic)}{
\itemize{
\item \code{show(RLum.Results)}: Show structure of \code{RLum.Results} object
\item \code{set_RLum(RLum.Results)}: Construction method for an RLum.Results object.
\item \code{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., \code{fit_LMCurve}).
If nothing is specified always the first \code{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.
\item \code{length_RLum(RLum.Results)}: Returns the length of the object, i.e., number of stored data.objects
\item \code{names_RLum(RLum.Results)}: Returns the names data.objects
\item \code{view(RLum.Results)}: View method for \linkS4class{RLum.Results} objects
}}
\section{Slots}{
\describe{
\item{\code{data}}{Object of class \link{list} containing output data}
}}
\note{
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 \code{get_RLum}.
}
\section{Objects from the Class}{
Objects can be created by calls of the form \code{new("RLum.Results", ...)}.
}
\section{Class version}{
0.5.2
}
\examples{
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
}
\seealso{
\linkS4class{RLum}, \link{plot_RLum}, \link{merge_RLum}
}
\author{
Sebastian Kreutzer, Institute of Geography, Heidelberg University (Germany)
, RLum Developer Team}
\section{How to cite}{
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., Colombo, M., 2024. Luminescence: Comprehensive Luminescence Dating Data Analysis. R package version 0.9.25. https://r-lum.github.io/Luminescence/
}
\keyword{classes}
\keyword{internal}
\keyword{methods}