Suppose I have a matrix similar as the one show below in R.
[,1] [,2] [,3]
[1,] 2 4 3
[2,] 2 5 7
How can append a column to the front like below.
[,1] [,2] [,3] [,4]
[1,] 1 2 4 3
[2,] 1 1 5 7
Lastly, the matrix has many rows.