| tcplLvlCount {tcpl} | R Documentation | 
Load tcpl level counts
Description
tcplLvlCount queries the tcpl databases and returns a data frame with
count totals for the given levels and data type.
Usage
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
Examples
## 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)
[Package tcpl version 3.1.0 Index]