check_dists: Check if valid dists attribute for an 'mcgf' object

View source: R/check.R

check_distsR Documentation

Check if valid dists attribute for an mcgf object

Description

Check if valid dists attribute for an mcgf object

Usage

check_dists(dists, n_var, names, name_dists = "dists")

Arguments

dists

List of scaler or vector

n_var

Scaler, number of variables.

names

column and row names of matrices in dists.

name_dists

name_dists of dists.

Details

Check if dists is a valid dists attribute for an mcgf object. It errors if 1) dists does not contain h1 or h2, 2) if their dimensions do not match, 3) if it contains elements other than h, h1 or h2. h will be computed if it is not given.

Value

dists.


mcgf documentation built on June 29, 2024, 9:09 a.m.