R/getgene.R

Defines functions getgene

Documented in getgene

#' Get Gene
#'
#' extract the column in the list format of the data frame
#' @param data a data frame contains column of genes in list form
#' @param col column of genes list
#'
#' @return a character list contains all genes
#' @export
#'
#' @examples
#' getgene(data = sea_data, col = "leadingEdge")
getgene <- function(data,col){
  genes_col <- data[col]
  genes <- unlist(genes_col, use.names = FALSE)
  return(genes)
}
xiayh17/How2Document documentation built on Dec. 23, 2021, 6:18 p.m.