Coerce to DataFrame.

Value

DataFrame.

Examples

data(data.table, sparseMatrix, tbl_df, package = "acidtest") ## data.table to DataFrame ==== x <- as(data.table, "DataFrame") head(x)
#> DataFrame with 4 rows and 4 columns #> sample01 sample02 sample03 sample04 #> <integer> <integer> <integer> <integer> #> gene01 1 2 3 4 #> gene02 5 6 7 8 #> gene03 9 10 11 12 #> gene04 13 14 15 16
## Matrix to DataFrame ==== x <- as(sparseMatrix, "DataFrame") ## tbl_df to DataFrame ==== x <- as(tbl_df, "DataFrame") head(x)
#> DataFrame with 4 rows and 4 columns #> sample01 sample02 sample03 sample04 #> <integer> <integer> <integer> <integer> #> gene01 1 2 3 4 #> gene02 5 6 7 8 #> gene03 9 10 11 12 #> gene04 13 14 15 16