Skip to contents

Create object for manipulating partitions, which are sets of labels for representing and naming model entities.

Usage

Partition(frame)

Arguments

frame

Data frame representing the partition.

Value

Object of class Partition with the following methods.

Methods

  • $frame() -- The Partition object as a data frame.

  • $dotted() -- The Partition object as a data frame with one united column.

  • $names() -- The names of the Partition (i.e. the column names).

  • $name() -- The name of the Partition (i.e. the dot-concatenated column names).

  • $labels() -- The labels of the Partition (i.e. the row-wise dot-concatenated columns).

  • $partial_labels() -- TODO

  • $filter(..., .wrt, .comparison_function) -- Filter by keeping only a subset of labels.

  • $filter_out(..., .wrt, .comparison_function) -- Filter by removing a subset of labels.

  • $filter_ordered(..., .wrt, .comparison_function = all_equal) -- Filter and order by labels.

    • ... -- Labels to filter

    • .wrt -- The filtering labels are with respect to a particular Partition, and .wrt is the name of this Partition.

    • .comparison_function -- Boolean function to decide if each filtering label is equal to each label in the Partition.

  • $select(...) -- Create a new Partition with a subset of names. The rows of the new Partition are de-duplicated.

  • $select_out(...) -- Create a new Partition without a subset of names.

    • ... -- Names to keep in the resulting Partition.

  • $expand(name) -- TODO

  • $union(other) -- TODO

Fields

  • products