as_matrix: Convert tibbles to a matrix

View source: R/as_matrix.R

as_matrixR Documentation

Convert tibbles to a matrix

Description

Mainly used to convert count tables to matrix for Bioconductor functions that require a matrix as input.

Usage

as_matrix(x)

as_tbl(x, var = "id")

Arguments

x

a tibble with identifiers in column 1 (assigned as rownames) and numbers in remaining columns

var

name of column, default id

Value

A matrix

Functions

  • as_tbl(): Convert matrix to tibble

Author(s)

Chris Stubben

Examples

x <- top_counts(pasilla$results, pasilla$rlog, top=25)
x
as_matrix(x)

HuntsmanCancerInstitute/hciR documentation built on Aug. 20, 2024, 12:22 a.m.