Learn R Programming

neotoma2 (version 1.1.1)

count: Count the number of sites, datasets, or collectionunits associated with a site object.

Description

Count the number of sites, datasets, or collectionunits associated with a site object.

Usage

count(x, level = "sites")

# S4 method for sites count(x, level = c("sites", "collunits", "datasets"))

# S4 method for site count(x, level = c("sites", "collunits", "datasets"))

Value

A count of the specified level in the object

Arguments

x

A sites or site object.

level

The level at which you want to count. Can be sites, collunits, or datasets. Default is sites.