Learn R Programming

hyperSpec (version 0.98-20140523)

read.cytomat: Import for Cytospec mat files

Description

These functions allow to import .mat (Matlab V5) files written by Cytospec.

Usage

read.cytomat(file, keys2data = FALSE, blocks = TRUE,
    drop.empty = TRUE)

Arguments

file
The complete file name (or a connection to) the .mat file.
keys2data
specifies which elements of the Info should be transferred into the extra data
blocks
which blocks should be read? TRUE reads all blocks.
drop.empty
should empty spectra (all elements are NA) be dropped?

Value

  • hyperSpec object if the file contains a single spectra block, otherwise a list with one hyperSpec object for each block.

See Also

R.matlab::readMat