R/make_table.R

Defines functions make_table

Documented in make_table

#' Make Table
#'
#' @param x 
#' @param name 
#'
#' @return
#' @export
#'
#' @examples
make_table <- function(x, name ){
  require(data.table)
  result <- as.data.table(as.data.frame(x),
                          keep.rownames = "gene_id"
  )
  colnames(result)[2] <- name
  setkey(result, gene_id)

  return(result)
}
dbrookeUAB/GeCKO documentation built on Aug. 25, 2020, 8:35 a.m.