Convert spectral data files to csv files
lr_convert_tocsv(
where = NULL,
ext = "txt",
decimal = ".",
sep = NULL,
subdir = FALSE,
cores = NULL,
ignore.case = TRUE,
overwrite = FALSE
)
Folder in which files are located (defaults to current working directory).
File extension to be searched for, without the "." (defaults to
txt
). You can also use a character vector to specify multiple file
extensions.
Character to be used to identify decimal plates
(defaults to .
).
Column delimiting characters to be considered in addition to the default (which are: tab, space, and ";")
Should subdirectories within the where
folder be included in
the search? (defaults to FALSE
).
deprecated. See future::plan()
for more details on how to
customise your parallelisation strategy.
Should the extension search be case insensitive? (defaults
to TRUE
)
logical. Should the function overwrite existing files with
the same name? (defaults to FALSE
).
Convert input files to csv and invisibly return the list of created file paths
This step loses all metadata associated to the spectra. This metadata is
critical to ensure reproducibility. We recommended you use
lr_get_metadata()
to extract this information from your raw data.
You can customise the type of parallel processing used by this function with
the future::plan()
function. This works on all operating systems, as well
as high performance computing (HPC) environment. Similarly, you can customise
the way progress is shown with the progressr::handlers()
functions
(progress bar, acoustic feedback, nothing, etc.)