[r] Convert dataframe column to 1 or 0 for "true"/"false" values and assign to dataframe