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.
writeAverage(filename, ntimes, nwave, scans,
fileout = paste(filename, "Average.ivo", sep=""),
calibration = 1:nwave, wexplicit=FALSE)
No return value, called for side effects
This is the path to the file to read in, as a quoted string.
number of times in each scan
number of wavelengths in each scan
number of full scans to read
a character vector specifying the filename to write the averaged data to; the default is to write a file named "filenameAverage.ivo"
a numeric vector representing the wavelength labels; by default the labels "1, 2, ..., nwave" are used
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.
Katharine M. Mullen, Ivo H. M. van Stokkum
readData