I have a data frame in R which looks like this with two columns:
ID phone_number Mark 866458 Paul 986564 Jack 987543 Mary 523422 <
ID phone_number Mark 866458 Paul 986564 Jack 987543 Mary 523422
We can transpose the dataframe and then create one vector of values
data.frame(new_col = c(t(df))) # new_col #1 Mark #2 866458 #3 Paul #4 986564 #5 Jack #6 987543 #7 Mary #8 523422
Another base R option using mapply
mapply
data.frame(new_col = c(mapply(c, df$ID, df$phone_number)))