Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

writeAverage

Writes the average of scans stored in a file to a new file in the 'ivo' format


Description

Some measurement set-ups dump a set of matrices stacked on top of each other to a file; each matrix represents a scan. This function writes the average of the scans to a file in the '.ivo' format.

Usage

writeAverage(filename, ntimes, nwave, scans,
             fileout = paste(filename, "Average.ivo", sep=""),
             calibration = 1:nwave, wexplicit=FALSE)

Arguments

filename

This is the path to the file to read in, as a quoted string.

ntimes

number of times in each scan

nwave

number of wavelengths in each scan

scans

number of full scans to read

fileout

a character vector specifying the filename to write the averaged data to; the default is to write a file named "filenameAverage.ivo"

calibration

a numeric vector representing the wavelength labels; by default the labels "1, 2, ..., nwave" are used

wexplicit

logical whether the file is written in the 'wavelength explicit' format, with each column of the matrix written representing a wavelength, as opposed to the 'time explicit' format, where each column represents a timepoint.

Author(s)

Katharine M. Mullen, Ivo H. M. van Stokkum

See Also


TIMP

Fitting Separable Nonlinear Models in Spectroscopy and Microscopy

v1.13.2
GPL (>= 2)
Authors
Katharine M. Mullen, Joris J. Snellenburg, Sergey P. Laptenok, David Nicolaides, Ivo H.M. van Stokkum
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.