tcplLvlCount: Load tcpl level counts

Description Usage Arguments Details Value See Also Examples

View source: R/tcplLvlCount.R

Description

tcplLvlCount queries the tcpl databases and returns a data frame with count totals for the given levels and data type.

Usage

1
tcplLvlCount(lvls = NULL, type = "mc")

Arguments

lvls

Integer or list of Integers, The levels of data to load

type

Character of length 1, the data type, "sc" or "mc"

Details

The data type can be either 'mc' for mutliple concentration data, or 'sc' for single concentration data.

Leaving lvls NULL will return all data.

Value

A data.table containing data for the given fields.

See Also

tcplQuery, data.table

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Store the current config settings, so they can be reloaded at the end 
## of the examples
conf_store <- tcplConfList()
TCPLlite <- file.path(system.file(package = "tcpl"), "example")
tcplConf(db = TCPLlite, user = NA, host = NA, drvr = "tcplLite")
 
## Get all counts for level 1 for multiple-concentration
tcplLvlCount(lvls = 1)

## Not run: 
## Get all counts for levels 4 through 7 for multiple-concentration
tcplLvlCount(lvls = 4:7)

## Get all counts for multiple-concentration data, note 'mc' is the 
## default value for type
tcplLvlCount()

## End(Not run)

## Reset configuration
options(conf_store)

USEPA/CompTox-ToxCast-tcpl documentation built on May 5, 2019, 4:48 p.m.