I wrote an function which is checking each row of a data.frame. The checks are conditional statements which print YES or NO. Should be very straight forward. But somehow the results are not what was intended. I've tried 2 different ways.I wrote an function which is checking each row