Count the number of sites, datasets, or collectionunits associated with a site object.
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"))
A count of the specified level in the object
A sites or site object.
The level at which you want to count. Can be sites, collunits, or datasets. Default is sites.