R/tcplLoadAsid.R

Defines functions tcplLoadAsid

Documented in tcplLoadAsid

#-------------------------------------------------------------------------------
# tcplLoadAsid: Load assay source id and name for the given fields
#-------------------------------------------------------------------------------

#' @rdname assay_funcs
#' @import data.table
#' @export

tcplLoadAsid <- function(fld = NULL, val = NULL, add.fld = NULL) {
  tbl = "assay_source"
  out <- c("assay_source.asid", 
           "assay_source.assay_source_name")
  
  qstring <- .buildAssayQ(out = out, 
                          tblo = c(6, 4:1), 
                          fld = fld, 
                          val = val, 
                          add.fld = add.fld)
  dat <- tcplQuery(query = qstring, db = getOption("TCPL_DB"), tbl=tbl)
  
  dat[]
  
}

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