Link to the example of the matrix I am trying to work with
The image is an example of the output that I get after running a method (icd9_comorbid_quan_deyo()) in R-package ('icd') with a dataframe as input.
In the index(?) column are the identifier for the attributes (12345, 12346, ...). Is there a way to extract these numbers (12345, 12346, ...) and define them as a separate column when I convert the matrix into a dataframe?
I am quite new to R and seem to be stuck on this problem. I apologize in advance for any incorrect terms.
Thank you.