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β
| Type | Parameter | Description |
|---|---|---|
| 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"]