categories: Create a Categories measure

categoriesR Documentation

Create a Categories measure

Description

Method for constructing a categories measure through a Unit.

Usage

categories(unit, name, cardinality, order, numberOfInstances = 1)

Arguments

unit

Unit object. Unit that has/contributes the categories measure.

name

Character. Name of measure, corresponds to column name in data.

numberOfInstances

Integer or AbstractVariable or AtMost or Per. Number of instances of the measure the @param unit has. Default is 1.

cardinality.

Integer. Optional. Only required if no data is assigned. Number of unique categories. If @param order is provided, @param cardinality is not needed and will be set to the length of @order.

order.

List. Optional. List of categories in order from "lowest" to "highest".

Value

handle to Categories measure


emjun/tisaner documentation built on Nov. 9, 2024, 6:32 p.m.