set_target: Modify an Existing Target Matrix

View source: R/target.R

set_targetR Documentation

Modify an Existing Target Matrix

Description

Convenience function to set specific cells of a target matrix after initial construction with make_target.

Usage

set_target(target, items, factors, value)

Arguments

target

An esem_target matrix.

items

Integer indices or character names of items to modify.

factors

Integer indices or character names of factors to modify.

value

New value: 1, 0, or NA.

Value

The modified target matrix.


bifactory documentation built on Oct. 28, 2026, 1:06 a.m.