Skip to contents

Reads a HISEA-formatted mixture data file. It attempts to extract lines containing only numeric data (typical for HISEA mixture files) and converts them into a numeric matrix.

Usage

read_mixture(filepath = "hisea.mix", nv)

Arguments

filepath

Character string, the path to the mixture .mix file.

nv

Integer, the number of variables (columns) expected for each observation in the mixture data.

Value

A numeric matrix where rows are observations and columns are variables. Returns an empty matrix (with nv columns) if no valid data is found or errors occur.