Learn R Programming

neotoma2 (version 1.0.8)

get_table: Get table record from Neotoma

Description

Call Neotoma and return a table (with limits & offsets for large tables)

Usage

get_table(x, limit = 25, offset = 0)

Value

selected table values from the Database.

Arguments

x

Table name (consult https://open.neotomadb.org/dbschema/ for a complete list of table names.

limit

Default 25 records

offset

Default 0.

Examples

Run this code
{
# Returns only the first 25 specimen records.
tryCatch({
someSpec <- get_table('specimens')
}, error = function(e) {
 message("Neotoma server not responding. Try again later.")
})
}

Run the code above in your browser using DataLab