Learn R Programming

neotoma (version 1.7.4)

get_table: Get Neotoma value tables.

Description

Get Neotoma value tables.

Usage

get_table(table.name = NULL)

Arguments

table.name

Call one of the available tables in the Neotoma Database. A full listing of tables can be found here: http://api.neotomadb.org/doc/resources/dbtables. By default it returns all objects in the table.

Details

A table of values corresponding to the parameter of interest.

References

Neotoma Project Website: http://www.neotomadb.org API Reference: http://api.neotomadb.org/doc/resources/contacts

Examples

Run this code
# NOT RUN {
taxon.table <- get_table('Taxa')

#  Get the frequency of a random taxon in Neotoma.
tax_sample <- sample(nrow(taxon.table), 1)
cat("The taxon", 
    taxon.table$TaxonName[tax_sample], 
    "occurs in Neotoma", 
    length(get_dataset(taxonname = taxon.table$TaxonName[tax_sample])), 
    "times.")
# }

Run the code above in your browser using DataLab