as_md_tbl: Coerce matrix_data to data frames

View source: R/as-md-tbl.R

as_md_tblR Documentation

Coerce matrix_data to data frames

Description

Coerce matrix_data to data frames

Usage

as_md_tbl(x, ...)

## S3 method for class 'matrix_data'
as_md_tbl(x, ...)

## S3 method for class 'grouped_matrix_data'
as_md_tbl(x, ...)

## S3 method for class 'mantel_tbl'
as_md_tbl(x, byrow = TRUE, ...)

## S3 method for class 'easycorrelation'
as_md_tbl(x, type = "full", diag = TRUE, ...)

## S3 method for class 'correlate'
as_md_tbl(x, ...)

## S3 method for class 'grouped_correlate'
as_md_tbl(x, ...)

## S3 method for class 'rcorr'
as_md_tbl(x, ...)

## S3 method for class 'corr.test'
as_md_tbl(x, ...)

## S3 method for class 'data.frame'
as_md_tbl(
  x,
  name = NULL,
  row_vars = NULL,
  col_vars = NULL,
  group_vars = NULL,
  row_names = NULL,
  col_names = NULL,
  is_corr = FALSE,
  r_vars = NULL,
  p_vars = NULL,
  ...
)

## S3 method for class 'matrix'
as_md_tbl(x, ...)

## S3 method for class 'md_tbl'
as_md_tbl(x, ...)

## S3 method for class 'md_tbl'
as_md_tbl(x, ...)

Arguments

x

any R can be converted to md_tbl.

...

other parameters.

byrow

a logical value indicating whether arrange the 'spec' columns on y axis.

type

character, "full" (default), "upper" or "lower", display full matrix, lower triangular or upper triangular matrix.

diag

logical, if TRUE (default) will keep the diagonal of matrix data.

name

variable name.

row_vars, col_vars, group_vars

variable name of row/column/group id.

row_names, col_names

character, row/column names of matrix.

is_corr

if TRUE, the data will be regarded as the correlation coefficient.

r_vars

variable name of correlation coeffient column.

p_vars

variable name of p value column.

Value

a tibble object.

Author(s)

Hou Yun


Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.