Learn R Programming

Luminescence (version 0.7.1)

bin_RLum.Data: Channel binning - method dispatchter

Description

Function calls the object-specific bin functions for RLum.Data S4 class objects.

Usage

bin_RLum.Data(object, ...)

Arguments

object
RLum.Data (required): S4 object of class RLum.Data
...
further arguments passed to the specifc class method

Value

An object of the same type as the input object is provided

Function version

0.1.0 (2016-05-02 09:36:06)

How to cite

Kreutzer, S. (2017). bin_RLum.Data(): Channel binning - method dispatchter. Function version 0.1.0. In: Kreutzer, S., Dietze, M., Burow, C., Fuchs, M.C., Schmidt, C., Fischer, M., Friedrich, J. (2017). Luminescence: Comprehensive Luminescence Dating Data Analysis. R package version 0.7.1. https://CRAN.R-project.org/package=Luminescence

Details

The function provides a generalised access point for specific RLum.Data objects. Depending on the input object, the corresponding function will be selected. Allowed arguments can be found in the documentations of the corresponding RLum.Data class.

See Also

RLum.Data.Curve

Examples

Run this code

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

##create RLum.Data.Curve object from this example
curve <-
  set_RLum(
      class = "RLum.Data.Curve",
      recordType = "OSL",
      data = as.matrix(ExampleData.CW_OSL_Curve)
  )

##plot data without and with 2 and 4 channel binning
plot_RLum(curve)
plot_RLum(bin_RLum.Data(curve, bin_size = 2))
plot_RLum(bin_RLum.Data(curve, bin_size = 4))

Run the code above in your browser using DataLab