Learn R Programming

cheddar (version 0.1-639)

CP: Single community properties

Description

Returns a single community property or NA if property is not in CommunityPropertyNames.

Usage

CP(community, property)

Value

A single community property.

Arguments

community

an object of class Community.

property

the name of the community property to be returned.

Author

Lawrence Hudson

Details

This function is named CP for Community Property.

See Also

Community, CPS, CommunityPropertyNames

Examples

Run this code
data(TL84)
CP(TL84, 'title')

CP(TL84, 'lat')

CP(TL84, 'M.units')

# Returns a vector of NA
CP(TL84, 'not a property')

Run the code above in your browser using DataLab