transpose.spectra: Transpose spectra file(s) from/to row or column major format....

View source: R/spec.utils.R

transpose.spectraR Documentation

Transpose spectra file(s) from/to row or column major format. Works with either a single spectrum or directory of spectral observations.

Description

Transpose spectra file(s) from/to row or column major format. Works with either a single spectrum or directory of spectral observations.

Usage

transpose.spectra(
  file.dir = NULL,
  input.file = NULL,
  out.dir = NULL,
  out.filename = NULL,
  in.file.ext = ".csv",
  out.file.ext = ".csv",
  header = FALSE
)

Arguments

file.dir

directory of spectra files to process

input.file

name of input spectra file. If ommitted then the function transposes all files in the input file.dir

out.dir

output directory for transposed spectra file(s)

out.filename

output filename of transposed spectra file(s). If using a directory then the original filenames are appended with the .t suffix

in.file.ext

file extension for individual spectra files. Defaults to ".csv"

out.file.ext

option to set the output extension. Defaults to ".csv"

header

logical. Do/does the file(s) have a header line?

Author(s)

Shawn P. Serbin


serbinsh/R-FieldSpectra documentation built on March 31, 2022, 10:08 p.m.