View source: R/ifcb_read_mat.R
ifcb_read_mat | R Documentation |
This function reads a MATLAB .mat
file using a Python function via reticulate
.
ifcb_read_mat(file_path)
file_path |
A character string representing the full path to the .mat file. |
Python must be installed to use this function. The required python packages can be installed in a virtual environment using ifcb_py_install()
.
This function requires a python interpreter to be installed.
The required python packages can be installed in a virtual environment using ifcb_py_install()
.
A list containing the MATLAB variables.
ifcb_py_install
## Not run:
# Initialize Python environment and install required packages
ifcb_py_install()
# Example .mat file included in the package
mat_file <- system.file("exdata/example.mat", package = "iRfcb")
# Read mat file using Python
data <- ifcb_read_mat(mat_file)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.