I have a data frame with 1.6M rows and almost 400 columns. I'm trying to create a key for every row by concatenating the column values:
paste(df[, c(15:400)], collapse = "_")
This is taking forever, and I'm wondering if there is a faster way to perform this action? All the columns are just 0 or 1 values and the key would look something like "0_0_1_0_1_1_0_1...".