Learn R Programming

iRfcb (version 0.5.1)

ifcb_read_mat: Read a MATLAB .mat File in R

Description

This function reads a MATLAB .mat file using a Python function via reticulate.

Usage

ifcb_read_mat(file_path)

Value

A list containing the MATLAB variables.

Arguments

file_path

A character string representing the full path to the .mat file.

Details

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().

See Also

ifcb_py_install

Examples

Run this code
if (FALSE) {
# 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)
}

Run the code above in your browser using DataLab