| CPS | R Documentation |
Returns a list of first-class and computed community properties.
CPS(community, properties = NULL)
community |
an object of class |
properties |
the names of the properties to be returned. |
This function is named CPS for Community PropertieS.
If properties is NULL, all properties are returned. If properties is
not NULL then a list containing that subset of community properties is
returned. Elements will be NA for values of property not in
CommunityPropertyNames.
A list.
Lawrence Hudson
Community, CP,
CommunityPropertyNames
data(TL84)
# All properties
CPS(TL84)
# Just lat and long
CPS(TL84, c('lat', 'long'))
# lat and long and number of nodes
CPS(TL84, c('lat', 'long', 'NumberOfNodes'))
# lat and long and number of nodes, renamed
CPS(TL84, c('lat', 'long', S='NumberOfNodes'))
# 'not a property' is NA
CPS(TL84, c('lat', 'long', S='NumberOfNodes', 'not a property'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.