I got some data like this
structure(list(id = c(1, 1, 1), time1 = c(10, 20, 30), time2 = c(15, 25, 35)), row.names = c(NA, 3L), class = "data.frame")
and I want to create a single column from the two columns in the above data
structure(list(id = c(1, 1, 1, 1, 1, 1), time = c(10, 15, 20, 25, 30, 35)), row.names = c(NA, 6L), class = "data.frame")
I dont think its the same as converting into long format because I dont want two columns as a result of gather(), with one the names of the columns used and one the values.