lr_convert_tocsv: Convert spectral data files to csv files

Description Usage Arguments Value Warning

View source: R/convert_tocsv.R

Description

Convert spectral data files to csv files

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
lr_convert_tocsv(
  where = NULL,
  ext = "txt",
  decimal = ".",
  sep = NULL,
  subdir = FALSE,
  cores = getOption("mc.cores", 2L),
  ignore.case = TRUE,
  overwrite = FALSE
)

Arguments

where

Folder in which files are located (defaults to current working directory).

ext

File extension to be searched for, without the "." (defaults to txt). You can also use a character vector to specify multiple file extensions.

decimal

Character to be used to identify decimal plates (defaults to .).

sep

Column delimiting characters to be considered in addition to the default (which are: tab, space, and ";")

subdir

Should subdirectories within the where folder be included in the search? (defaults to FALSE).

cores

Number of cores to be used. If greater than 1, import will use parallel processing (not available in Windows).

ignore.case

Should the extension search be case insensitive? (defaults to TRUE)

overwrite

logical. Should the function overwrite existing files with the same name? (defaults to FALSE).

Value

Convert input files to csv and invisibly return the list of created file paths

Warning

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.


Bisaloo/lightr documentation built on Jan. 21, 2020, 4:10 p.m.