OrderCollection: Order a collection of communities

Description Usage Arguments Value Author(s) See Also Examples

View source: R/community_collection.R

Description

Order a CommunityCollection

Usage

1
OrderCollection(collection, ..., decreasing=FALSE)

Arguments

collection

an object of class CommunityCollection.

...

the names of properties by which to order the communities.

decreasing

logical.

Value

A CommunityCollection.

Author(s)

Lawrence Hudson

See Also

CommunityCollection, order, CollectionCPS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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'))

quicklizard99/cheddar documentation built on June 10, 2018, 12:15 p.m.