Learn R Programming

numOSL (version 1.8)

select: BIN file records selection

Description

Extracting data records with certain criteria.

Usage

select(obj, position = NULL, runNumber = NULL, nPoints = NULL, 
       low = NULL, high = NULL, irrTime = NULL, lumType = NULL, 
       dataType = NULL, lightSource = NULL)

Arguments

obj
required: an object of S3 class "binfile", which is produced by function viewer
position
vector(optional): carousel position(s)
runNumber
vector(optional): run number(s)
nPoints
vector(optional): number(s) of points of records
low
double(optional): lower limit on temperature, time, or wavelength
high
double(optional): upper limit on temperature, time, or wavelength
irrTime
vector(optional): irradiation time(s)
lumType
character(optional): luminescence type(s), see viewer for available luminescence types
dataType
character(optional): data type(s), see viewer for available data types
lightSource
character(optional): light source(s), see viewer for available light sources

Value

  • Return a list containing the following elements:
  • recordsa matrix (if records are of equal-length) or a list (if records have different lengths) that contains selected data records
  • taba table that summaries the data structure and attributes of selected records

Details

Function select is used for extracting records that satisfy a number of specified criteria (attributes) from an object of S3 class "binfile". Extracted equal-length records are stored in a matrix column by column and can be used in further analysis.

See Also

viewer

Examples

Run this code
# obj <- viewer("foo.bin")
   # select(obj, position=2, lumType="osl")

Run the code above in your browser using DataLab