convert_PSL2CSV function

Export PSL-file(s) to CSV-files

Export PSL-file(s) to CSV-files

This function is a wrapper function around the functions read_PSL2R and write_RLum2CSV and it imports an PSL-file (SUERC portable OSL reader file format) and directly exports its content to CSV-files. If nothing is set for the argument path (write_RLum2CSV ) the input folder will become the output folder.

convert_PSL2CSV(file, extract_raw_data = FALSE, single_table = FALSE, ...)

Arguments

  • file: character (required ): name of the PSL-file to be converted to CSV-files

  • extract_raw_data: logical (with default): enable/disable raw data extraction. The PSL files imported into R contain an element $raw_data, which provides a few more information (e.g., count errors), sometimes it makes sense to use this data of the more compact standard values created by read_PSL2R

  • single_table: logical (with default): enable/disable the creation of single table with n rows and n columns, instead of separate data.frame

    objects. Each curve will be represented by two columns for time and counts

  • ...: further arguments that will be passed to the function read_PSL2R and write_RLum2CSV

Returns

The function returns either a CSV-file (or many of them) or for the option export = FALSE a list comprising objects of type data.frame and matrix

Function version

0.1.2

Examples

## export into single data.frame file <- system.file("extdata/DorNie_0016.psl", package="Luminescence") convert_PSL2CSV(file, export = FALSE, single_table = TRUE) ## Not run: ##select your BIN-file file <- file.choose() ##convert convert_PSL2CSV(file) ## End(Not run)

See Also

RLum.Analysis , RLum.Data , RLum.Results , utils::write.table , write_RLum2CSV , read_PSL2R

Author(s)

Sebastian Kreutzer, Institute of Geography, Heidelberg University (Germany) , RLum Developer Team

How to cite

Kreutzer, S., 2025. convert_PSL2CSV(): Export PSL-file(s) to CSV-files. Function version 0.1.2. In: Kreutzer, S., Burow, C., Dietze, M., Fuchs, M.C., Schmidt, C., Fischer, M., Friedrich, J., Mercier, N., Philippe, A., Riedesel, S., Autzen, M., Mittelstrass, D., Gray, H.J., Galharret, J., Colombo, M., Steinbuch, L., Boer, A.d., 2025. Luminescence: Comprehensive Luminescence Dating Data Analysis. R package version 1.0.1. https://r-lum.github.io/Luminescence/

  • Maintainer: Sebastian Kreutzer
  • License: GPL-3
  • Last published: 2025-03-07