attribute_set: Build an attribute 'Set' from names

View source: R/fcaR_helpers.R

attribute_setR Documentation

Build an attribute Set from names

Description

Replaces the common two-step pattern of creating and assigning attributes manually with a single call. Useful for implication closures and $recommend().

Usage

attribute_set(fc, ...)

Arguments

fc

A FormalContext.

...

Attribute names: a character vector, or several strings.

Value

A Set over fc$attributes.

Examples

## Not run: 
S <- attribute_set(fc, "Romantic", "Slow_burn")
fc$implications$closure(S)

## End(Not run)


fcaR documentation built on July 27, 2026, 5:06 p.m.