R/tcplLoadAid.R

Defines functions tcplLoadAid

Documented in tcplLoadAid

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

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

tcplLoadAid <- function(fld = NULL, val = NULL, add.fld = NULL) {
  tbl=c("assay")
  out <- c("assay.aid", 
           "assay.assay_name")
  
  qstring <- .buildAssayQ(out = out, 
                          tblo = c(6, 1, 4, 3, 2), 
                          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.