Get matrix from tibble

as_matrix(tbl, rownames = NULL, do_check = TRUE)

Arguments

tbl

A tibble

rownames

The column name of the input tibble that will become the rownames of the output matrix

do_check

A boolean

Value

A matrix

Examples



tibble(.feature = "CD3G", count=1) |> as_matrix(rownames=.feature)
#>      count
#> CD3G     1