Skip to main content
Version: 7.9

columnRename

This function is used by Ignition's Expression language.

Description

Returns a view of the given dataset with the columns renamed. The number of new names must match exactly with the existing column count.

Syntax

columnRename(dataset[, newName...])

  • Parameters

    • DataSet dataset - The starting dataset.

    • string newName - Optional. Any number of new column names. The columns specified must match the number of columns in the original dataset.

  • Results

    • DataSet - A new dataset with new column names.

Examples

Code Snippet
columnRename(twoColDataset, "colOne", "colTwo") // returns a Dataset with columns ["colOne", "colTwo"]