Icon

1. Manual IF Switch

<p><strong>Manual IF Switch</strong></p><p>This workflow implements an example of a manual <em>IF Switch</em> to control which parts of the workflows are executed.</p><p>In the configuration window of the <em>IF Switch</em> node, you can manually select which output ports are active: top, bottom, or both. The top branches bins the data on column "city_mpg", the bottom branch bins the data on "highway_mpg". The <em>End IF</em> node concatenates the data from all active branches.</p><p>Change the configuration of the <em>IF Switch</em> node to see the difference.</p><p><strong><em>Note. </em></strong>The selection of the active ports of the <em>IF Switch</em> node can be automated if they are controlled by flow variables. An example of this is implemented in workflow "2. Automated IF Switch".</p>

Workflow: Manual IF Switch


This workflow implements an example of a manual IF Switch to control which parts of the workflows are executed.

In the configuration window of the IF Switch node, you can manually select which output ports are active: top, bottom, or both. The top branches bins the data on column "city_mpg", the bottom branch bins the data on "highway_mpg". The End IF node concatenates the data from all active branches.

Change the configuration of the IF Switch node to see the difference.

Note. The selection of the active ports of the IF Switch node can be automated if they are controlled by flow variables. An example of this is implemented in workflow "2. Automated IF Switch".

Reading data

Aggregating data:

  • mean(engine size)

  • max(horse power)

  • range(curb weight)

IF Switch

Manually activate/disactivatethe output ports andconnected branches
IF Switch
Collect data fromall active branches
End IF
Calculate stats
GroupBy
Quantiles oncity_mpg
Binner
cars-85.csv
CSV Reader
Quantiles onhighway_mpg
Binner
city_mpg [Binned] to Binned MPG
Column Renamer
highway_mpg [Binned] to Binned.MPG
Column Renamer

Nodes

Extensions

Links