library(RCPA3)
# basic usage
sortC(id=state, by=abortlaws, data=states)
if (FALSE) {
# options to limit results and sort in ascending order
sortC(id=country, by=gini.index, descending=FALSE, limit=10, data=world)
# sort by and thenby
sortC(id=country, by=vdem.4cat, thenby=gini.index, descending=c(FALSE, FALSE),
data=world, confirm=FALSE)
sortC(id=country, by=vdem.4cat, thenby=gini.index, descending=c(FALSE, TRUE),
data=world, confirm=FALSE)
}
Run the code above in your browser using DataLab