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.



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