View source: R/community_collection.R
OrderCollection | R Documentation |
Order a CommunityCollection
OrderCollection(collection, ..., decreasing=FALSE)
collection |
an object of class |
... |
the names of properties by which to order the communities. |
decreasing |
logical. |
A CommunityCollection
.
Lawrence Hudson
CommunityCollection
,
order
,
CollectionCPS
data(pHWebs)
CollectionCPS(pHWebs, c('pH', 'NumberOfNodes'))
# Order by name
pHWebs.name <- OrderCollection(pHWebs, 'title')
CollectionCPS(pHWebs.name, c('pH', 'NumberOfNodes'))
# Order by decreasing pH
pHWebs.decreasing.pH <- OrderCollection(pHWebs, 'pH', decreasing=TRUE)
CollectionCPS(pHWebs.decreasing.pH, c('pH', 'NumberOfNodes'))
# Order by increasing diversity
pHWebs.increasing.S <- OrderCollection(pHWebs, 'NumberOfNodes')
CollectionCPS(pHWebs.increasing.S, c('pH', 'NumberOfNodes'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.