Learn R Programming

EEM (version 1.1.1)

unfold: Unfold EEM list into a matrix

Description

Unfold EEM list into a matrix with columns as variables (wavelength conditions) and rows as samples.

Usage

unfold(EEM, replaceNA = TRUE)

Arguments

EEM
a list containing EEM data as created by readEEM function.
replaceNA
logical value whether to replace NA with 0

Value

Unfolded EEM matrix where columns are wavelength condition and rows are samples

Examples

Run this code
data(applejuice)
applejuice_uf <- unfold(applejuice) # unfold list into matrix
dim(applejuice_uf) # dimension of unfolded matrix

Run the code above in your browser using DataLab