R/sample_ind.R

Defines functions sample_ind

Documented in sample_ind

#' @title sample_ind
#' @description Computes the resufling of the expression values for the IDs.
#' @param x Column to be resampled
#' @param dfExpression data.frame object containing the genes expression on the rows and the individuals (Individuals in the Columns)
#' @keywords internal
#' @author Deisy Morselli Gysi <deisy at bioinf.uni-leipzig.de>


sample_ind = function(x, dfExpression){
  z = base::sample(dfExpression[,x], replace = F)
  return(z)
}
deisygysi/wTO documentation built on May 25, 2022, 2:46 a.m.