transpose.spectra | R Documentation |
Transpose spectra file(s) from/to row or column major format. Works with either a single spectrum or directory of spectral observations.
transpose.spectra( file.dir = NULL, input.file = NULL, out.dir = NULL, out.filename = NULL, in.file.ext = ".csv", out.file.ext = ".csv", header = FALSE )
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? |
Shawn P. Serbin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.