I have two vectors and want to create a matrix in R, subtracting one from the other.
Vector1 <- c(1,2,3)
Vector2 <- c(2,3,4,5)
The resulting matrix then would have three columns and four rows. The matrix would be vector1 minus each sequential element of vector2. E.g. the first row would be vector1 minus the first element of vector2 (i.e., (1-2), (2-2), (3-2)). The second row would be vector1 minus the second element of vector2 (i.e. (1-3),(2-3),(3-3)) and so on.
In reality the vectors are much longer.