metan (version 1.18.0)

is.lpcor: Coerce to an object of class lpcor

Description

[Stable]

Functions to check if an object is of class lpcor

Usage

is.lpcor(x)

Value

A logical value TRUE or FALSE.

Arguments

x

An object to check.

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab