absorbance_read: Reading absorbance data from txt and csv files.
Description
Reading absorbance data from txt and csv files.
Usage
absorbance_read(absorbance_path, order = TRUE, recursive = TRUE, ...)
Arguments
absorbance_path
directory containing absorbance data files or path to single file. See details for format of absorbance data.
order
logical, data is ordered according to wavelength
recursive
read files recursive, include subfolders
...
additional arguments that are passed on to read.table.
Value
A data frame containing absorbance data
Details
If absorbance_path is a directory, contained files that end on "csv" or "txt" are passed on to read.table. If the path goes to a file, this file is passed on. Tables can either contain data from one sample or from several samples in columns. The column header containig the wavelength must be either "wavelength" or "Wavelength". A multi-sample file must have sample names as column names. A single-sample file can have sample name as column name or sample name as file name and "Abs." as column name. All tables are combined to one with one wavelength column and one column for each sample containing the absorbance data.