as_matrix_data: as_matrix_data

Description Usage Arguments Value Author(s)

View source: R/as_matrix_data.R

Description

Coerce to a matrix_data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
as_matrix_data(x, ...)

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

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

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

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

Arguments

x

any R object.

...

ignore.

name

variable name.

include

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

Value

a matrix_data object.

Author(s)

Hou Yun


Hy4m/hyplot documentation built on March 29, 2021, 6:19 p.m.