renameColumns
The renameColumns method creates a new table with specified columns renamed.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| columns | String... | Columns that will be renamed in the new table.
|
| columns | Collection<String> | Columns that will be renamed in the new table.
|
| pairs | MatchPair... | Columns that will be renamed in the new table.
|
Returns
A new table that renames the specified columns.
Examples
The following example renames columns A and C: