Description Usage Arguments Details Value Known bug in export Examples
Export EEMs to Matlab
The .mat file name where to export the structure.
One or more object of class
The function exports EEMs into PARAFAC-ready Matlab
usable by the drEEM toolbox.
A structure named
OriginalData is created and contains:
The number of eems.
The number of excitation wavelengths.
The number of emission wavelengths.
A vector containing excitation wavelengths.
A vector containing emission wavelengths.
A 3D matrix (nSample X nEx X nEm) containing EEMs.
sample_name The list of sample names (i.e. file names) of the
R.Matlab to export the
the fluorescence data into a matfile. However, there is currently a bug in
the latter package that require the user to reshape the exported data once
in Matlab. This can be done using the following command:
load('OriginalData.mat'); OriginalData.X = reshape(OriginalData.X,
OriginalData.nSample, OriginalData.nEm, OriginalData.nEx)
1 2 3 4 5
file <- system.file("extdata/cary/", package = "eemR") eem <- eem_read(file, recursive = TRUE, import_function = "cary") export_to <- paste(tempfile(), ".mat", sep = "") eem_export_matlab(export_to, eem)
Successfully exported 6 EEMs to /work/tmp/tmp/RtmpGeVAEQ/filef8b93755860ba.mat. There were 50 or more warnings (use warnings() to see the first 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.