as_matrix: Get matrix from tibble

as_matrixR Documentation

Get matrix from tibble

Description

Get matrix from tibble

Usage

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)


stemangiola/ttBulk documentation built on April 10, 2024, 3:36 p.m.