compare_conditions function

Compare two conditions within a data frame