as_matrix {tidybulk}R Documentation

Get matrix from tibble

Description

Get matrix from tibble

Usage

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

Arguments

tbl

A tibble

rownames

A character string of the rownames

do_check

A boolean

Value

A matrix

Examples


library(dplyr)

tidybulk::se_mini |> tidybulk() |> select(feature, count) |> head() |> as_matrix(rownames=feature)


[Package tidybulk version 1.6.1 Index]