as.lpcorr: Coerce to an object of class lpcor

Description Usage Arguments Examples

Description

Functions to check if an object is of class lpcor, or coerce it if possible.

Usage

1
2
3
4
5
## S3 method for class 'lpcor'
as(x, y, ...)

## S3 method for class 'lpcor'
is(x)

Arguments

x

The first object.

y

The second object.

...

Additional matrices to be coerced to a list.

Examples

1
2
3
4
5
6
7
8
library(METAAB)
library(dplyr)
mt_num = mtcars %>% select_if(., is.numeric)
lpdata = as.lpcor(cor(mt_num[1:5]),
                  cor(mt_num[1:5]),
                  cor(mt_num[2:6]),
                  cor(mt_num[4:8]))
is.lpcor(lpdata)

TiagoOlivoto/WAASB documentation built on April 1, 2019, 10:25 a.m.