• Futurama Formulas - Date and time
• Futurama Formulas - Math
• Futurama Formulas - Statistical
• Futurama Formulas - Text
• Futurama Formulas - Logical
• Futurama Formulas - Table
• Futurama Formulas - Document
• Futurama Formulas - Conversion
• Futurama Formulas - Matrix
• Creating custom formulas in Futurama

Module: Editor

Version: 5.2.0 +

Type: Long, Double, Date, Boolean or String

Category: Matrix

## Description

The formula 'Distinct' returns only the distinct values of a vector. The formula 'Distinct' removes values that are in the vector for the second time or more. The formula 'Distinct' can only be used with matrices of rank 1.

## Parameters

Vector:      the vector you want to use for distinction.

## Example

### Description

In the following example the formula 'Distinct' is used to get a vector with distinct values.

### Values parameters

Vector (i.e. a matrix with rank 1):

Column 1
5
10
2
5
2
6

### Result

Output:

Column 1
5
10
2
6
The outcome is a vector with only distinct values.