Icon

Exercise1

<p><strong>Chapter 3/Exercise 1</strong></p><p>This workflow is an exercise for string manipulation and rule creation.</p><p>The <em>Expression </em>node alone can implement the required string manipulation task. However, just to show what other nodes can do, the <em>Column Resorter</em>, the <em>Column Combiner</em> and the <em>String Replacer</em> are also shown in this exercise.</p>

URL: KNIME Beginner's Luck (Book Homepage) https://www.knime.com/knimepress/beginners-luck

String manipulation options

Both branches build the sentences "inflated is T" and "not inflated is F" for inflated and not inflated balloons.

Workflow: Chapter 3/Exercise 1


This workflow is an exercise for string manipulation and rule creation.

The Expression node alone can implement the required string manipulation task. However, just to show what other nodes can do, the Column Resorter, the Column Combiner and the String Replacer are also shown in this exercise.

Cleaning data

Reading data

Create rule

yellow-small.csv
CSV Reader
Rename columns asspecified in fileballons.names
Column Renamer
if YELLOW and SMALL=> "inflated"otherwise => "not inflated"
Expression
"not," -> "not "
String Replacer
"Inflated" columnas last column
Column Resorter
Same result as fromall string manipulation nodes above
Expression
Constant columntmp = "is"
Expression
Combining columnsClass + tmp + Inflated
Column Combiner

Nodes

Extensions

Links