Wrapped function to quickly convert PSL files to xlum (files) from the portable luminescence system produced by the SUERC

convert_psl2xlum(file, out_file = NULL)

Arguments

file

character (required): file

out_file

character (optional): output file, if set a file output is created

Value

Depending on the setting. If out_file == NULL an xml2::xml_document object is returned, if file is set the function attempts to write an *.xlum file`.

Function version

0.1.0

Author

Sebastian Kreutzer, Institute of Geography, Heidelberg University, Heidelberg (Germany)

How to cite

Kreutzer, S., 2022. convert_psl2xlum(): Convert SUERC PSL-files to XLUM. Function version 0.1.0. In: Kreutzer, S., 2022. xlum: Read, Write, and Convert XLUM Data. R package version 0.1.0.

Examples

## load package example data
## for loading own data use
## file <- file.choose()
file <- system.file("extdata", "DorNie_0016.psl", package = "Luminescence")
convert_psl2xlum(file)
#> {xml_document}
#> <xlum lang="en" formatVersion="1.0" flavour="string" author="string" license="CC BY 4.0" doi="" xmlns:xlum="http://xlum.r-luminescence.org">
#> [1] <sample name="NA" mineral="NA" latitude="52.416944" longitude="4.066389"  ...