as_matrix_data: as_matrix_data

View source: R/as-matrix-data.R

as_matrix_dataR Documentation

as_matrix_data

Description

Coerce to a matrix_data

Usage

as_matrix_data(x, ...)

## S3 method for class 'matrix'
as_matrix_data(x, name = NULL, group = NULL, ...)

## S3 method for class 'data.frame'
as_matrix_data(x, name = NULL, include = "numeric", group = NULL, ...)

## S3 method for class 'correlate'
as_matrix_data(x, extra_mat = list(), ...)

## S3 method for class 'grouped_correlate'
as_matrix_data(x, extra_mat = list(), ...)

## S3 method for class 'rcorr'
as_matrix_data(x, extra_mat = list(), ...)

## S3 method for class 'corr.test'
as_matrix_data(x, extra_mat = list(), ...)

## Default S3 method:
as_matrix_data(x, ...)

Arguments

x

any R object.

...

ignore.

name

variable name.

group

a character vector used to split the matrix data.

include

one of "numeric" (default), "character" or "factor".

extra_mat

a list of matrix.

Value

a matrix_data object.

Author(s)

Hou Yun


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