I have a dataframe a
with row names. The row names are unique string names, something like this:
order..new..i...2.ncol.new..i.....
J.TYMO 620
J.TTMO 2851
J.NTT 1972
J.ABOT 565
J.NNDO 1025
J.SFTB 2509
when I execute a one-liner code as.data.frame(a[a[1] <= 2000])
to remove rows less than or equal to a value (as in 2000) my result does not include the row names.
I would EXPECT my code to do something like this:
J.TYMO 620
J.NTT 1972
J.ABOT 565
J.NNDO 1025
Instead it does this:
1 620
2 1972
3 565
4 1025
Any ideas? Thanks.