datatable-to-list

Create list from datatable column.

Convert all the values from a datatable column into a list format.

Arguments

Inputs:

data: The datatable containing the column from which the list elements will be created.

column: The name of the column from which the list elements will be created.

Output:

list: A list containing the values from the selected datatable column.

Note: All values will be included, in the original order of the data in the column. To remove duplicate values or sort the output, another adaptor will be required (e.g. unique-list-items)

Example

Possible use cases

  • In conjunction with Unique-list-items, identify all unique values in one column of a datatable (e.g. list all institutions affected by an outbreak)

Last updated