normalizeColumnValues: Glib.normalizeColumnValues

Description Usage Arguments Examples

Description

Replace all occurrences of the search strings with the replacement string in the subject column.

Usage

1
Glib.normalizeColumnValues(manager, column, oldValues = c(), newValue)

Arguments

manager

Glib data transformation manager object.

column

the subject column.

oldValues

the values (vector) being searched for, otherwise known as the needle.

newValue

the replacement value.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
DataTransformationManager <- Glib.createDataTransformationManager(GlibEnv)
Glib.readEventLogs(DataTransformationManager, 'sample-export.csv')
orderAlternatives <- c(
  '0_order', '00_order', '000_order', 'AA_order',
  'A_order', 'BB_order', 'B_order'
)
Glib.normalizeColumnValues(DataTransformationManager, 'event', orderAlternatives, 'order')

## End(Not run)

jarold87/R-Glib documentation built on May 20, 2019, 7:01 p.m.