pattern_key: Convert binary matrix rows to string keys

View source: R/sim-utils.R

pattern_keyR Documentation

Convert binary matrix rows to string keys

Description

Collapses each row of a binary matrix to a single string by pasting the entries without separator (e.g. c(0,1,0) becomes "010").

Usage

pattern_key(x)

Arguments

x

A numeric or integer matrix.

Value

A character vector of length nrow(x).


ForceChoice documentation built on Sept. 13, 2026, 1:06 a.m.