Skip to end of metadata
Go to start of metadata

This function is used by Ignition's Expression language.

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

 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.

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