Skip to contents

This constructor function wraps a 9x9 integer matrix and associates it with a set of levels, creating a 'forms_matrix' object.

Usage

forms_matrix(x, levels)

Arguments

x

Integer. A 9x9 matrix.

levels

Named integer vector. Map of integer values to their string names. This is typically the output of get_forms_grass_enum().

Value

An object of class c("forms_matrix", "matrix", "array").