I have a data frame with two columns: one integer column and one with numeric values. I need to turn this into a matrix whereby all the values are zero except for when the c