Counting occurrences within a row in knime

Hi All,

 

I have a table with six columns, the first being a string identifier, followed by 5 different prediction columns containing TRUE or FALSE. I would like to append a column containing the number of TRUE's in each row. What is the best way to do this in KNIME? Thanks,

 

 

Chris

I think the Column Aggregator might work with Sum function (in case you want the number of true boolean values). Otherwise, Math Formula or Java Snippets can help.

Cheers, gabor