ggstatsplot (version 0.0.9)

matrix_to_tibble: Convert a matrix to a tibble dataframe.

Description

Convert a matrix to a tibble dataframe.

Usage

matrix_to_tibble(df, var = "variable")

Arguments

df

A matrix.

var

Name of column to use for rownames.

Examples

Run this code
# NOT RUN {
set.seed(123)
cor_df <- cor(purrr::keep(iris, is.numeric))
ggstatsplot:::matrix_to_tibble(cor_df)
# }

Run the code above in your browser using DataLab