Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

plyr::arrange() does not preserve row names #59

Closed
tbates opened this Issue Sep 15, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

tbates commented Sep 15, 2011

compare

arrange(mtcars, cyl, desc(disp))
mpg cyl disp hp drat wt qsec vs am gear carb
1 24.4 4 146.7 62 3.69 3.190 20.00 1 0 4 2
2 22.8 4 140.8 95 3.92 3.150 22.90 1 0 4 2

mtcars[with(mtcars, order(cyl, disp)), ]
mpg cyl disp hp drat wt qsec vs am gear carb
Toyota Corolla 33.9 4 71.1 65 4.22 1.835 19.90 1 1 4 1
Honda Civic 30.4 4 75.7 52 4.93 1.615 18.52 1 1 4 2

Owner

hadley commented Sep 15, 2011

I need to put this in big letters up front somewhere: plyr does not support rownames, and will silently drop any input rownames.

@hadley hadley closed this Oct 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment