Last data update: 2014.03.03

R: Channel binning - method dispatchter
bin_RLum.DataR Documentation

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

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.

Value

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

Function version

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

Note

Currenlty only RLum.Data objects of class RLum.Data.Curve are supported!

Author(s)

Sebastian Kreutzer, IRAMAT-CRP2A, Universite Bordeaux Montaigne (France)
R Luminescence Package Team

See Also

RLum.Data.Curve

Examples


##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))

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Luminescence)
Welcome to the R package Luminescence version 0.6.0 [Built: 2016-05-30 16:47:30 UTC]
The NSA: 'O'zapft is.'
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Luminescence/bin_RLum.Data.Rd_%03d_medium.png", width=480, height=480)
> ### Name: bin_RLum.Data
> ### Title: Channel binning - method dispatchter
> ### Aliases: bin_RLum.Data
> ### Keywords: utilities
> 
> ### ** Examples
> 
> 
> ##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))
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>