I would like to merge 2 vectors this way :
a = c(1,2,3) b = c(11,12,13) merged vector : c(1,11,2,12,3,13)
How could I do it ?
This will work using rbind
:
c(rbind(a, b))
For example:
a = c(1,2,3) b = c(11,12,13) c(rbind(a,b)) #[1] 1 11 2 12 3 13
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With