create_profiles: Generate mastery profiles

View source: R/utils.R

create_profilesR Documentation

Generate mastery profiles

Description

Given the number of attributes, generate all possible patterns of attribute mastery.

Usage

create_profiles(attributes)

Arguments

attributes

Positive integer. The number of attributes being measured.

Value

A tibble with all possible attribute mastery profiles. Each row is a profile, and each column indicates whether the attribute in that column was mastered (1) or not mastered (0). Thus, the tibble will have 2^attributes rows, and attributes columns.

Examples

create_profiles(3L)
create_profiles(5)

wjakethompson/measr documentation built on April 12, 2025, 9:46 p.m.