Data-flo Docs
  • About Data-flo
    • Data-flo Major Update in April 2024
      • Migrating your workflows into the latest version of Data-flo
        • Streamlined adaptors
        • Deprecated adaptors
        • New and retained adaptors
    • Change Log
    • Privacy and Terms of Service
    • Open source software used by Data-flo
  • Data-flo Basics
    • Account
    • Navigation
    • Terminology
    • Interface Icons
    • Data-flo's building blocks: Adaptors
      • Using adaptors to import data
      • Using adaptors to process data
      • Using adaptors to export data
    • Combining adaptors to create workflows
      • Creating a workflow
        • Building a workflow from scratch
        • Cloning an existing workflow
        • Importing a .dataflo file
      • Testing your workflows
      • Running your workflows
      • Accessing your workflows
  • Adaptor reference guide
    • add-column
    • add-jittering
    • add-value-to-dictionary
    • aggregate-rows
    • append-datatables
    • append-lists
    • append-to-list
    • apply-force-directed-layout
    • calculate-column
    • calculate-time-difference
    • change-column-case
    • compare-columns
    • concatenate-columns
    • concatenate-text
    • convert-date-to-text
    • convert-list-to-datatable
    • convert-text-to-datatable
    • convert-text-to-list
    • create-dictionary-from-datatable
    • create-google-drive-folder
    • create-graph-from-datatable
    • create-graph-from-dot
    • create-list-from-datatable
    • create-text-from-template
    • duplicate-column
    • export-file-to-google-drive
    • export-file-to-smb-share
    • export-graph-to-dot-file
    • export-text-to-file
    • export-to-csv-file
    • export-to-dbf-file
    • export-to-google-sheet
    • export-to-microreact-project
    • export-to-sqlite-file
    • filter-list
    • filter-rows
    • find-value-in-dictionary
    • find-value-in-list
    • format-date-column
    • format-time-column
    • geocoding
    • import-file-from-dropbox
    • import-file-from-figshare
    • import-file-from-google-drive
    • import-file-from-http-request
    • import-file-from-s3
    • import-file-from-smb-share
    • import-file-from-url
    • import-from-csv-file
    • import-from-dbf-file
    • import-from-epicollect-project
    • import-from-excel-file
    • import-from-google-sheet
    • import-from-json-file
    • import-from-microreact-project
    • import-from-mysql
    • import-from-oracle
    • import-from-postgres
    • import-from-spreadsheet-file
    • import-from-sql-server
    • import-from-sqlite
    • import-list-from-text-file
    • import-text-from-file
    • join-datatables
    • list-datatable-columns
    • list-newick-leaf-labels
    • map-column-values
    • prepend-to-list
    • query-datatable
    • remove-columns
    • remove-duplicate-list-values
    • remove-duplicate-rows
    • rename-columns
    • rename-newick-leaf-labels
    • replace-blank-values
    • replace-values-in-columns
    • replace-values-in-list
    • replace-values-in-text
    • reshape-long-to-wide
    • reshape-wide-to-long
    • reverse-geocoding
    • run-openai-model
    • run-replicate-model
    • run-workflow
    • sample-datatable
    • select-columns
    • select-list-values
    • select-rows
    • send-email-message
    • sort-datatable
    • sort-list
    • split-column
    • split-geographical-coordinates
    • split-list
    • summarise-datatable
    • transform-columns
    • workflow-repeater
  • Applying Data-flo
    • Basics in Minutes!
      • Quick Workflow
        • Step 1: Configure a solo adapter to view data.
        • Step 2: Add and link a second adaptor.
        • Step 3: Add a value.
        • Step 4: Complete the workflow.
        • Step 5: Run the workflow.
        • Step 6: Share the workflow.
  • API
    • Data-flo API
    • API Access Tokens
  • Support
    • Contact and Feedback
    • Private Installations
Powered by GitBook
On this page
  • Description
  • Inputs
  • Outputs
  • Examples
  • Example 1: Default behaviour.
  • Example 2: Concatenation with a separator.
  • Use Cases
  1. Adaptor reference guide

concatenate-columns

Description

concatenate-columns adaptor concatenates values from two or more columns into a single value, with or without a delimiter between them.

The order given in the columns input is the order in which the values are concatenated. By default, the values will be concatenated without a delimiter between them, this can be changed by setting the separator value.

Inputs

data Type: datatable Required: Yes The datatable containing the columns to be concatenated.

columns Type: list Required: Yes A list of columns to be concatenated. The output value matches the listed order.

separator Type: text Required: No Specifies text to separate each concatenated value. Defaults to "" (blank).

concatenated column Type: text Required: Yes The new column containing concatenated values.

Outputs

data Type: datatable A datatable with the concatenated column added.

Examples

Example 1: Default behaviour.

Inputs:

data:

Sample ID
A
B
C

Sample A

R

R

R

Sample B

S

R

S

Sample C

R

S

I

Sample D

I

R

R

Sample E

R

r

R

Sample F

r

r

r

columns:

  • A

  • B

  • C

concatenated column: Result

Outputs:

data:

Sample ID
A
B
C
Result

Sample A

R

R

R

RRR

Sample B

S

R

S

SRS

Sample C

R

S

I

RSI

Sample D

I

R

R

IRR

Sample E

R

r

R

RrR

Sample F

r

r

r

rrr

-> Concatenated the columns A, B and C and added the value to the Result column.

Example 2: Concatenation with a separator.

Inputs:

data:

Sample ID
A
B
C

Sample A

R

R

R

Sample B

S

R

S

Sample C

R

S

I

Sample D

I

R

R

Sample E

R

r

R

Sample F

r

r

r

columns:

  • A

  • B

  • C

concatenated column: Result

separator: ;

Outputs:

data:

Sample ID
A
B
C
Result

Sample A

R

R

R

R;R;R

Sample B

S

R

S

S;R;S

Sample C

R

S

I

R;S;I

Sample D

I

R

R

I;R;R

Sample E

R

r

R

R;r;R

Sample F

r

r

r

r;r;r

-> Concatenated the columns A, B and C and added the value to the Result column with a ; separator.

Use Cases

  • Use this adaptor to generate a composite key or ID by concatenating multiple column values

  • Combining values from different categorical columns can result in a new categorical variable. This can be useful when you want to create a combined label that captures the essence of the data more effectively.

  • Concatenating year, month, and day values from separate columns into a new date column

  • When working with data that includes components of URLs or file paths, concatenation can be used to construct these addresses in a new column. This is particularly useful when you need to reference external resources or link to specific locations.

  • Concatenating values allows for the creation of a new column with a specific format suitable for display or visualisation labeling purposes.

Previouscompare-columnsNextconcatenate-text

Last updated 1 year ago