Skip to contents

Decorates a masked data frame by adding a new column indicating the size of sets (represented as boolean vectors with a specific prefix column encoding).

Usage

md_set_size(md, setvar = "x", cname = NULL)

Arguments

md

A masked data frame.

setvar

A character string representing the column prefix for matrix encoding. Default is "x".

cname

An optional character string for the name of the new column denoting the size of the sets. Defaults to concatenating "size_", and `setvar`.

Value

A decorated masked data frame with a new column `cname` indicating the size of the sets.