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[]
  
}

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

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.