I am trying to create a new matrix/data frame using a list of values that match the values of a column in the old data frame. Also for the new matrix/data frame I want to preser