R/tcplLoadAeid.R

Defines functions tcplLoadAeid

Documented in tcplLoadAeid

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

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

tcplLoadAeid <- function(fld = NULL, val = NULL, add.fld = NULL) {
  tbl = c("assay_component_endpoint", "assay", "assay_component")
  out <- c("assay_component_endpoint.aeid", 
           "assay_component_endpoint.assay_component_endpoint_name")
  
  qstring <- .buildAssayQ(out = out, 
                          tblo = c(1, 2, 4, 3, 6), 
                          fld = fld, 
                          val = val, 
                          add.fld = add.fld)
  
  dat <- tcplQuery(query = qstring, db = getOption("TCPL_DB"), tbl=tbl)
  
  dat[]

}

#-------------------------------------------------------------------------------

Try the tcpl package in your browser

Any scripts or data that you put into this service are public.

tcpl documentation built on Oct. 7, 2023, 1:06 a.m.