change-column-case
Convert the case of text values in a column (e.g. UPPERCASE, lowercase, camelCase, hyphen-case, etc)
Functionality
For a column in a datatable, change the case to one of the supported case patterns. The changed text can either overwrite the original text in the column OR be placed in a different column.
Arguments
Inputs:
data
: The input datatable
column
: The column with text you want to convert to a different case
case
: The case pattern you want for your converted text (see options in "Supported case patterns" below)
target
: The name of the column to contain the converted case (if you want the output to be in a separate column from the source noted in the "column" argument)
Output:
output
: datatable with converted case (either in the same column it came from or a new target column)
Examples
Supported case patterns
This table shows available case options.
Possible use cases
Standardizing values in a column as a harmonization step (e.g. change "uk" to be "UK")
Making text values easier to read.
Last updated