such as a=[1,2,3 ],b =[2,4] I want to get a new one [1 2 3 4 5]. Thank you. -- View this message in context: http://r.789695.n4.nabble.com/How-to-combine-two-matrix-or-vectors-tp4376467p4376467.html Sent from the R help mailing list archive at Nabble.com.