I want to cbind a column to the data frame with the column name dynamically assigned from a string
y_attribute = \"Survived\" cbind(test_data, y_attribute =
Not proud of this but I usually will do somethingl like this:
dyn.col <- "XYZ" cbind(test.data, UNIQUE_NAMEXXX=NA) colnames(test.data)[colnames(test.data == 'UNIQUE_NAMEXXX')] <- dyn.col