R create new column in dataframe based on other columns July 8, 2019 16 32 64 128 R data frame create new column based on other columns