matrix[sort(matrix$variable)[1:10],]
best,
Holger
Suzanna Chapman wrote:
Does anyone know how in R code to view say the top 10
maximum values of
a column, alongside their values for another column - ie - county name,
with income level, sorted so I only view the top 10 richest counties?
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
--
Holger Lutz Kern
Graduate Student
Department of Government
Cornell University
Institute for Quantitative Social Science
Harvard University
1737 Cambridge Street N350
Cambridge, MA 02138
www.people.cornell.edu/pages/hlk23