Learn R Programming

rbmn (version 0.9-6)

check8nbn: checks a /nbn/ object

Description

checks the consistency of nbn as a /nbn/ object issues a fatal error with some clues if inconsistent.

Usage

check8nbn(nbn, sto = FALSE)

Value

TRUE or a character containing some clue about the discovered inconsistency.

Arguments

nbn

The nbn object to check.

sto

If 'TRUE', the possible error is displayed and the process is stopped. If 'FALSE', the possible error is returned as a character.

Details

Looking a the code of this function provides a way to know which are the requirements of a /chain/ object.

Examples

Run this code
 check8nbn(rbmn0nbn.01);
 res <- check8nbn(rbmn0adja.01);
 if (is.na(as.logical(res))) { print(res);}

Run the code above in your browser using DataLab