R/methods.R
as_matrix.Rd
Get matrix from tibble
as_matrix(tbl, rownames = NULL, do_check = TRUE)
A tibble
The column name of the input tibble that will become the rownames of the output matrix
A boolean
A matrix
tibble(.feature = "CD3G", count=1) |> as_matrix(rownames=.feature) #> count #> CD3G 1