addCondition function

Add a single column to existing data set based on a condition