as.lpcor: Coerce to an object of class lpcor

Description Usage Arguments Value Author(s) Examples

View source: R/as.lpcor.R

Description

[Stable]

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

Usage

1

Arguments

...

A comma-separated list of matrices to be coerced to a list.

Value

An object of class lpcor.

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples

1
2
3
4
5
6
7
8
library(metan)
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)

metan documentation built on Nov. 10, 2021, 9:11 a.m.