Description Usage Arguments Details Value S3-generic support Function version How to cite Note Author(s) See Also Examples

View source: R/merge_RLum.Data.Curve.R

Function allows merging of RLum.Data.Curve objects in different ways

1 | ```
merge_RLum.Data.Curve(object, merge.method = "mean", method.info)
``` |

`object` |
list of RLum.Data.Curve ( |

`merge.method` |
character ( |

`method.info` |
numeric ( |

This function simply allowing to merge RLum.Data.Curve objects without touching the objects itself. Merging is always applied on the 2nd colum of the data matrix of the object.

**Supported merge operations are RLum.Data.Curve**

`"sum"`

All count values will be summed up using the function rowSums.

`"mean"`

The mean over the count values is calculated using the function rowMeans.

`"median"`

The median over the count values is calculated using the function matrixStats::rowMedians.

`"sd"`

The standard deviation over the count values is calculated using the function matrixStats::rowSds.

`"var"`

The variance over the count values is calculated using the function matrixStats::rowVars.

`"min"`

The min values from the count values is chosen using the function matrixStats::rowMins.

`"max"`

The max values from the count values is chosen using the function matrixStats::rowMins.

`"append"`

Appends count values of all curves to one combined data curve. The channel width is automatically re-calculated, but requires a constant channel width of the original data.

`"-"`

The row sums of the last objects are subtracted from the first object.

`"*"`

The row sums of the last objects are mutliplied with the first object.

`"/"`

Values of the first object are divided by row sums of the last objects.

Returns an RLum.Data.Curve object.

This function is fully operational via S3-generics:
`+`

, `-`

, `/`

, `*`

, `merge`

0.2.0

Kreutzer, S., 2020. merge_RLum.Data.Curve(): Merge function for RLum.Data.Curve S4 class objects. Function version 0.2.0. In: Kreutzer, S., Burow, C., Dietze, M., Fuchs, M.C., Schmidt, C., Fischer, M., Friedrich, J., 2020. Luminescence: Comprehensive Luminescence Dating Data Analysis. R package version 0.9.7. https://CRAN.R-project.org/package=Luminescence

The information from the slot `recordType`

is taken from the first
RLum.Data.Curve object in the input list. The slot
'curveType' is filled with the name `merged`

.

Sebastian Kreutzer, IRAMAT-CRP2A, Universite Bordeaux Montaigne (France) , RLum Developer Team

merge_RLum, RLum.Data.Curve

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ```
##load example data
data(ExampleData.XSYG, envir = environment())
##grep first and 3d TL curves
TL.curves <- get_RLum(OSL.SARMeasurement$Sequence.Object, recordType = "TL (UVVIS)")
TL.curve.1 <- TL.curves[[1]]
TL.curve.3 <- TL.curves[[3]]
##plot single curves
plot_RLum(TL.curve.1)
plot_RLum(TL.curve.3)
##subtract the 1st curve from the 2nd and plot
TL.curve.merged <- merge_RLum.Data.Curve(list(TL.curve.3, TL.curve.1), merge.method = "/")
plot_RLum(TL.curve.merged)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.