I have a dataframe that I have scrambled through matching and ordering. I ask for a position in the dataframe by matching. Now I want to take that position and get the row.names?
tmp<-match(paste(dat$data), finaltable$data);
> tmp
[1] 3 26 32 38
data Duplicate Digit6 Digit7
45 21305 137401 137401 2017681
82 21342 137402 137402 2017731
81 21341 137403 137403 2017632
66 21326 137406 137406 2017775
64 21324 137407 137407 2017745
80 21340 137408 137408 2017768
I need a piece of code that outputs the rowname based on the position outputted from tmp?
rownames(finaltable)[tmp]? What exactly are you showing the output of above(datorfinatableor some subset)? And what is the desired output?