matrix_to_tibble: matrix or data.frame to tibble (taken from tidyquant)

View source: R/utilities.R

matrix_to_tibbleR Documentation

matrix or data.frame to tibble (taken from tidyquant)

Description

matrix or data.frame to tibble (taken from tidyquant)

Usage

matrix_to_tibble(x, preserve_row_names = "row.names", ...)

Arguments

x

a matrix

preserve_row_names

give name to rownames column, if NULL discard rownames

...

further parameters passed to as_tibble

See Also

Other utilities: INTERNAL_FUNCTIONS_BY_FAMILY, get_UniprotID_from_fasta_header(), multigroup_volcano(), names_to_matrix(), pairs_smooth(), pairs_w_abline(), panel_cor(), panel_hist(), remove_NA_rows(), table_facade()

Examples

x <- matrix(rnorm(20), ncol=4)
rownames(x) <- LETTERS[seq_len(nrow(x))]
matrix_to_tibble(x)
!(is.matrix(x) || is.data.frame(x))


wolski/prolfqua documentation built on May 12, 2024, 10:16 p.m.