Skip to content
Prev 58672 / 398502 Next

misleading output after ordering data frame

You wrote:

            
They're not actually row numbers, they're row ***names***.
	These default to row numbers.
	
	If they were real-live names you'd want them to be carried
	along in the sort.

	To re-set them to be what you want:

		rownames(d) <- 1:nrow(d)


				cheers,

					Rolf Turner
					rolf at math.unb.ca