Add mode() function to calculate mode of a column


Version: 2024b

Type: Features

Category: Programming

Subcategory: LabTalk

Jira: ORG-27102


double mode(dataset vd)

  • Returns the most frequently occurring value in the input dataset.

vector modes(dataset vd)

  • Return a vector of the most frequently occurring values in the input dataset.

  • This will return more than one result if there are multiple modes.

Improve Unique() function with more sorting options


Version: 2024b

Type: Features

Category: Programming

Subcategory: LabTalk

Jira: ORG-27102


Syntax: Unique(vector<string> vs[, int Sort, int Occurrence, int sort2])

  • sort2 = 0 (default), no occurrence sort.

  • sort2 = 1, sort by occurrence ascending.

  • sort2 = 2, sort by occurrence descending.