is_dhist: Check if an object is a 'dhist' discrete histogram

View source: R/dhist.R

is_dhistR Documentation

Check if an object is a dhist discrete histogram

Description

Checks if the input object is of class dhist. If fast_check is TRUE then the only check is whether the object has a class attribute of dhist. If fast_check is FALSE (default), then checks are also made to ensure that the object has the structure required of a dhist object.

Usage

is_dhist(x, fast_check = TRUE)

Arguments

x

An arbitrary object

fast_check

Boolean flag indicating whether to perform only a superficial fast check limited to checking the object's class attribute is set to dhist (default = TRUE)


alan-turing-institute/network-comparison documentation built on June 7, 2022, 10:41 p.m.