CHMcatalog: Return a catalog of DESC chemistry data

Description Usage Arguments Value Examples

Description

The function CHMcatalog can be used to return a catalog of chemistry data in the DESC database. There are only two arguments. One to define the connection handle and the other to limit the size of the catalog by sample count. Many sites within the DESC chemistry database have only 1 or two samples and are excluded by default. This can be changed by changing 'n' which defaults to 10 but can be set to any value.

Usage

1
CHMcatalog(channel, n = 10)

Arguments

channel

connection handle as returned by odbcConnect

n

minimum sample count

Value

A data frame

Examples

1
2
3
4
5
6
7
8
# Establish connection with database
CHM = odbcConnect("Connection", "User id", "Password")

# Grab a catalog of available chemistry data
Catalog = CHMcatalog(CHM)

# Grab a catalog of all available chemistry data
Catalog = CHMcatalog(CHM, n = 0)

D-ESC/CHMr documentation built on May 6, 2019, 12:54 p.m.