as_matrix {tidybulk} | R Documentation |
Get matrix from tibble
as_matrix(tbl, rownames = NULL, do_check = TRUE)
tbl |
A tibble |
rownames |
A character string of the rownames |
do_check |
A boolean |
A matrix
library(dplyr) tidybulk::se_mini %>% tidybulk() %>% select(feature, count) %>% head %>% as_matrix(rownames=feature)