Learn R Programming

neotoma2 (version 1.0.11)

getids: Get object IDs

Description

This function parses a site object, from site to dataset level and returns a data.frame that contains the site, collectionunit and dataset IDs for each element within the site.

Usage

getids(x, order = TRUE)

# S3 method for sites getids(x, order = TRUE)

# S3 method for site getids(x, order = TRUE)

# S3 method for collunits getids(x, order = TRUE)

# S3 method for collunit getids(x, order = TRUE)

Value

data.frame containing siteid, datasetid, and collunitid

Arguments

x

A Neotoma2 sites or collunits object.

order

sort items by siteid, collunitid, datasetid

Author

Simon Goring goring@wisc.edu

Examples

Run this code
if (FALSE) {
marion <- get_sites(sitename = "Marion Lake")
collunitids <- getids(collunits(marion))
}

Run the code above in your browser using DataLab