R/get_result.R

Defines functions get_result

Documented in get_result

#' Extract a table of the score result
#'
#'
#' @title get_result
#' @param result an object of class ScoreResult.
#' @param pvalueCutoff p-value cutoff.
#' @return a data.frame
#' @export
#' @author Yuanlong Hu
#' @examples
#'
#'   data("drugResult")
#'   res <- drugResult$demoScoreFP
#'   res <- get_result(res)

get_result <- function(result, pvalueCutoff = 0.05){
  result <- result@ScoreResult
  result <- result[result$p_value < pvalueCutoff,]
  return(result)
}

Try the immcp package in your browser

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

immcp documentation built on Nov. 14, 2020, 5:09 p.m.