R/access_slot_drug.R

#' Get drug information
#' Get the drug information slot from a {XevaSet} object.
#'
#' @examples
#' data(brca)
#' head(drugInform(brca))
#' @param object The \code{XevaSet} to retrieve drug information from.
#' @return A \code{data.frame} with the drug annotations.
setGeneric(name = "drugInform", def = function(object) {standardGeneric("drugInform")} )

#' @rdname drugInform
#' @export
setMethod( f=drugInform, signature="XevaSet",
           definition=function(object)
             { slot(object, "drug") } )

Try the Xeva package in your browser

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

Xeva documentation built on Nov. 8, 2020, 5:56 p.m.