categories | R Documentation |
Method for constructing a categories measure through a Unit.
categories(unit, name, cardinality, order, numberOfInstances = 1)
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". |
handle to Categories measure
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.