title: How to merge data frame and a string
body: <p>In the case that a=matrix(c(1,2,3,4),nrow=2,ncol=2) and b=c('name',3). I am trying to merge a and b  such that the outcome is [1 3 name 3] in the first row and [2 4]  in the second row. </p>