Concatenating two vectors in R [duplicate]
问题 This question already has answers here : How to concatenate factors, without them being converted to integer level? (8 answers) Closed 2 years ago . I want to concatenate two vectors one after the other in R. I have written the following code to do it: > a = head(tracks_listened_train) > b = head(tracks_listened_test) > a [1] cc1a46ee0446538ecf6b65db01c30cd8 19acf9a5cbed34743ce0ee42ef3cae3e [3] 9e7fdbf2045c9f814f6c0bed5da9bed7 3441b1031267fbb6009221bf47f9c5e8 [5]