is_data_expr {GWENA} | R Documentation |
Check an object to be a data.frame or a matrix compatible of genes and samples.
is_data_expr(data_expr)
data_expr |
matrix or data.frame, expression data with genes as column and samples as row. |
list, a boolean as first element and in second element NULL or the reason why boolean is set to FALSE
expr <- matrix(runif(15*40), 15) colnames(expr) <- paste0("gene_", seq_len(ncol(expr))) rownames(expr) <- paste0("gene_", seq_len(nrow(expr))) is_data_expr(expr)