I inherited someone's R code, and one of the key results of the code is a structure that R identifies only as "numeric" by class. When I print it out as.matrix, here's what it looks like:
[,1]
1 3.062500e-08
63 2.691366e-03
36 4.202501e-09
41 1.247481e-09
82 1.040101e-08
63 2.691366e-03
63 2.691366e-03
58 2.700624e-09
...
What I need to extract are those indices on the left - for example, for the first element the index is 1, for the second one it's 63, and so on. I can't seem to figure out how to do it. I've tried to get it by using 'row' (does not work, always gives me 1), by turning this structure into a data frame and looking for colnames, but nothing works. Could someone please help?