I have some data frames containing \'x\' and some go straight to \'y\'. I\'d like to check if \'x\' is in a data frame and do the first while loop and then proceed as in the