R/nFeaturesDS.R

Defines functions nFeaturesDS

Documented in nFeaturesDS

#' @title Retrieve number of features from eSets and RangedSummarizedExperiments.
#' @description This function is similar to the Biobase function \code{dim}.
#' @param x Object, possibly derived from eSet-class or RangedSummarizedExperiment.
#' @return a numeric value
#' @author Gonzalez, JR.
#'
#' @export

nFeaturesDS <- function(x){
  if(inherits(x, c("ExpressionSet", "SummarizedExperiment","RangedSummarizedExperiment")))
    return(dim(x)[1])
  else
    stop("implements the proper method")
} 
isglobal-brge/dsOmics documentation built on Nov. 6, 2024, 1:28 a.m.