read_BIN2R(file, show.raw.values = FALSE, position = NULL, n.records = NULL, zero_data.rm = TRUE, duplicated.rm = FALSE, fastForward = FALSE, show.record.number = FALSE, txtProgressBar = TRUE, forced.VersionNumber = NULL, ignore.RECTYPE = FALSE, pattern = NULL, verbose = TRUE, ...)
character
or list
(required): path and file name of the
BIN/BINX file. If input is a list
it should comprise only character
s representing
each valid path and BIN/BINX-file names.
Alternatively the input character can be just a directory (path), in this case the
the function tries to detect and import all BIN/BINX files found in the directory.LTYPE
, DTYPE
and LIGHTSOURCE
without
translation in characters. Can be provided as list
if file
is a list
.numeric
(optional): imports only the selected position. Note:
the import performance will not benefit by any selection made here.
Can be provided as list
if file
is a list
.show.record.number
for
debugging purposes, e.g. corrupt BIN-files. Can be provided as list
if file
is a list
.logical
(with default): remove erroneous data with no count
values. As such data are usally not needed for the subsequent data analysis they will be removed
by default. Can be provided as list
if file
is a list
.logical
(with default): remove duplicated entries if TRUE
.
This may happen due to an erroneous produced BIN/BINX-file. This option compares only
predeccessor and successor. Can be provided as list
if file
is a list
.logical
(with default): if TRUE
for a
more efficient data processing only a list of RLum.Analysis
objects is returned instead
of a Risoe.BINfileData-class object. Can be provided as list
if file
is a list
.list
if file
is a list
.txtProgressBar
.integer
(optional): allows to cheat the
version number check in the function by own values for cases where the
BIN-file version is not supported. Can be provided as list
if file
is a list
.
Note: The usage is at own risk, only supported BIN-file versions have been tested.logical
(with default): this argument allows to ignore values
in the byte 'REGTYPE' (BIN-file version 08), in case there are not documented or faulty set.
If set all records are treated like records of 'REGYPE' 0 or 1.character
(optional): argument that is used if only a path is provided.
The argument will than be passed to the function list.files
used internally to
construct a list
of wanted fileslogical
(with default): enables or disables verbose modeRisoe.BINfileData2RLum.Analysis
. Please note that any matching argument
automatically sets fastForward = TRUE
fastForward = TRUE
a list of RLum.Analysis
object is returned. The
internal coercing is done using the function Risoe.BINfileData2RLum.Analysis
http://www.nutech.dtu.dk/
write_R2BIN
, Risoe.BINfileData
,
readBin
, merge_Risoe.BINfileData
, RLum.Analysis
txtProgressBar
, list.files
##(1) import Risoe BIN-file to R (uncomment for usage)
#FILE <- file.choose()
#temp <- read_BIN2R(FILE)
#temp
Run the code above in your browser using DataLab