CollectionNPS: Collection node properties

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/community_collection.R

Description

Returns a data.frame of first-class and computed node properties of communities in a CommunityCollection.

Usage

1
CollectionNPS(collection, properties=NULL)

Arguments

collection

an object of class CommunityCollection.

properties

names of the properties. These can be names of first-class properties and names of functions. Names must meet the criteria of the properties parameter of NPS.

Details

This function is named CollectionNPS for Collection Node PropertieS. If properties is NULL, all first-class node properties are included in the returned data.frame.

Value

A data.frame.

Author(s)

Lawrence Hudson

See Also

NPS, CommunityCollection

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
data(pHWebs) 
head(CollectionNPS(pHWebs), 10)

head(CollectionNPS(pHWebs, 'M'), 10)

# Biomass is a function
head(CollectionNPS(pHWebs, 'Biomass'), 10)

head(CollectionNPS(pHWebs, c(B='Biomass')), 10)

# Several first-class and computed properties
head(CollectionNPS(pHWebs, c('M', 'N', B='Biomass', 'TrophicSpecies', 
                             TL='PreyAveragedTrophicLevel')), 10)

# Pass parameters to functions
head(CollectionNPS(pHWebs, 
                   list(TS1='TrophicSpecies', 
                        TS2=list('TrophicSpecies', include.isolated=FALSE), 
                        Iso='IsIsolatedNode')), 10)

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