print_dataframe: Print out a matrix's content as R code to regenerate the...

View source: R/fct_05_deg.R

print_dataframeR Documentation

Description

Print out a matrix's content as R code to regenerate the matrix This is used for generating R code from DESeq2 and limma commands Used mostly for design matrix in limma

Usage

print_dataframe(df, df_name = "ma", convert_matrix = FALSE)

Arguments

df

a matrix or data frame of numbers or characters

df_name

a string, specifying the name of the matrix to be print out

convert_matrix

whether to convert to a matrix

Value

a string. R code that can reconstruct the matrix


espors/idepGolem documentation built on April 23, 2024, 1:11 p.m.