Data-flo
Data-floSource CodeCGPS
  • INTRODUCTION
    • What is Data-flo
    • Getting Started - Sign In
    • Privacy and Terms Of Service
    • Contact - Help & reporting errors
    • Change log
  • USING DATA-FLO
    • Data-flo site navigation
      • Transformations Page
      • Run Page
      • Canvas
    • Data
      • Bringing data in to Data-flo
      • Getting data out of Data-flo
      • Data Types
        • Boolean
        • Datatable
        • File
        • Graph
        • List
        • Map
        • Number
        • Text
    • Regular Expressions (RegEx)
    • Adaptors overview
      • Components of an adaptor
      • Binding types
        • Bind to Data-flo input
        • Bind to value
        • Bind to another transformation
    • Specific adaptors
      • add-column
      • append-to-list
      • calculate-time-difference
      • change-column-case
      • columns-concatenation
      • concatenate-text
      • create-microreact-project
      • csv-file-to-datatable
      • csv-to-datatable
      • datatable-columns
      • datatable-to-csv-file
      • datatable-to-graph
      • datatable-to-list
      • datatable-to-map
      • datatable-to-sqlite-file
      • date-to-text
      • dbf-file
      • dot-to-graph
      • download-file
      • dropbox-file
      • epicollect-project
      • extend-datatable
      • figshare-file
      • file-to-text
      • filter-blank-values
      • filter-columns
      • filter-list
      • filter-rows
      • filter-rows-numerically
      • force-directed-layout
      • format-date-column
      • forward-geocoding
      • ftp-file
      • gather-rows
      • google-drive-file
      • google-spreadsheet
      • graph-to-dot
      • join-datatables
      • list-to-datatable
      • lookup-map-value
      • merge-datatables
      • merge-lists
      • microreact-project
      • mysql-database
      • newick-leaf-labels
      • oracle-database
      • postgress-database
      • prepend-to-list
      • remove-columns
      • remove-duplicate-rows
      • rename-columns
      • replace-blank-values
      • replace-column-values
      • replace-text
      • replace-text-in-list
      • replace-value
      • reverse-geocoding
      • row-column-value
      • s3-file
      • select-columns
      • send-email-message
      • slice-datatable
      • slice-list
      • smb-file
      • sort-datatable
      • sort-list
      • split-column
      • split-datatable-rows
      • split-list
      • split-text
      • spread-rows
      • spreadsheet-file
      • sql-server-database
      • sqlite-database
      • sum-rows
      • text-template
      • text-to-file
      • unique-list-items
      • update-epicollect-entries
      • update-microreact-project
      • update-smb-file
      • upload-file-to-google-drive
      • upload-files-to-google-drive
      • url-builder
      • yaml-to-json
    • Building a data-flo
      • Debugging mode
      • Show detailed errors on Run Page
      • Permissions - Access Control
    • Tips & Tricks
  • TUTORIALS
    • Prep outbreak data for Microreact
    • Common use cases, solved
      • Fixing datatable headers
      • Select, remove, rename, reorder columns
      • Data in separate files
      • There's no single-column unique row ID (primary key)
      • Ensure non-dates stay non-dates
      • Connect directly to a database
      • Access files on a drive
Powered by GitBook
On this page
  • Functionality
  • Arguments
  • Examples
  • Supported case patterns
  • Possible use cases

Was this helpful?

  1. USING DATA-FLO
  2. Specific adaptors

change-column-case

Convert the case of text values in a column (e.g. UPPERCASE, lowercase, camelCase, hyphen-case, etc)

Previouscalculate-time-differenceNextcolumns-concatenation

Last updated 2 years ago

Was this helpful?

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 "" 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.

Case
Example
Description

camel

thisIsCamelCase

first letter of each word is uppercase except very first letter

constant

THIS_IS_CONSTANT_CASE

upper case string with an underscore between words.

dot

this.is.dot.case

lower case string with a period between words

hyphen

this-is-hyphen-case

same as kebab

header

This-Is-Header-Case

like kebab and hyphen but with uppercase first letters

kebab

this-is-kebab-case

same as hyphen

lower

thisislowercase

all lowercase

lowerfirst

HELLO becomes hELLO

changes the first character to lowercase

no

this is no case

lowercase with spaces between words

param

version 1.2.10 becomes version-1-2-10

lower case string with a hyphen between words

pascal

ThisIsPascalCase

first letter of each word is uppercase

path

this/is/path/case

lowercase with slash between words

sentence

This is sentence case

only the first letter is uppercase

snake

this_is___snake_case

lowercase string with underscores between words

swap

SWAPcase becomes swapCASE

uppercase become lowercase and lowercase become uppercase

title

This Is the Way Titlecase Looks

most words have uppercase first letter

upper

THISISUPPERCASE

all uppercase

upperfirst

hello becomes Hello

changes the first character to uppercase

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.

Supported case patterns