Improved Unique() function by adding 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 sorting by occurrence.

  • sort2 = 1, sort by occurrence, ascending.

  • sort2 = 2, sort by occurrence, descending.

For more details, please visit:

https://www.originlab.com/doc/LabTalk/guide/Getting-Started-with-LT

Two new functions have been added to calculate the mode value within 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.