get_cov: Obtain the covariance matrix

View source: R/get_cov.r

get_covR Documentation

Obtain the covariance matrix

Description

If the input data is a square matrix, it is converted into a matrix, otherwise the covariance matrix is obtained.

Usage

get_cov(x, cor = FALSE)

Arguments

x

A dataframe or a matrix

cor

if TRUE, return correlation matrix. if FALSE, return covariance matrix

Value

The covariance or correlation matrix


eunscho/reliacoef documentation built on Jan. 30, 2023, 12:16 a.m.