Learn R Programming

HiveR (version 0.2-16)

chkHPD: Verify the integrity of a hive plot data object

Description

This function inspects the classes of each part of a HPD as a means of verifying its integrity. A few other characteristics are checked as well.

Usage

chkHPD(HPD, confirm = FALSE)

Arguments

HPD
An object of S3 class HivePlotData.
confirm
Logical; if TRUE then a favorable result is affirmed in the console (problems are always reported).

Value

  • A logical value; TRUE is there is a problem, otherwise FALSE.

References

http://academic.depauw.edu/~hanson/HiveR/HiveR.html

See Also

sumHPD which allows inspection (checking) of many properties of your HPD.

Examples

Run this code
test4 <- ranHiveData(nx = 4)
good <- chkHPD(test4, confirm = TRUE)
# mess it up and do again
# next test is not run as it halts execution
test4$nodes$color <- as.factor(test4$nodes$color)
bad <- chkHPD(test4)

Run the code above in your browser using DataLab