matrix_to_tibble: matrix_to_tibble

Description Usage Arguments Author(s) Examples

View source: R/tidyFunctions.R

Description

Converts a matrix to a tibble without removing rownames.

Usage

1
matrix_to_tibble(data, rowname = "rowname", drop = FALSE)

Arguments

data

matrix; The matrix to be converted.

rowname

character; Length 1 vector indicating the colname that rownames should have upon tibble conversion.

drop

logical; indicated if rownames should be dropped. Default = FALSE.

Author(s)

Jason T. Serviss

Examples

1
2
m <- matrix(rnorm(20), ncol = 2, dimnames = list(letters[1:10], LETTERS[1:2]))
output <- matrix_to_tibble(m)

jasonserviss/CIMseq documentation built on Jan. 11, 2020, 4:42 a.m.