Let's assume that we have the following three vectors.
L = c("1", "3")
K = c("2", "9", "2:9")
S = c("7")
Is there any way to combine them into a matrix that will look like the above ?
L K S
1 0 0
3 0 0
0 2 0
0 9 0
0 2:9 0
0 0 7
Thank you.