.check {cornet} | R Documentation |
Arguments
Description
Verifies whether an argument matches formal requirements.
Usage
.check(
x,
type,
dim = NULL,
miss = FALSE,
min = NULL,
max = NULL,
values = NULL,
inf = FALSE,
null = FALSE
)
Arguments
x |
argument |
type |
character |
dim |
vector/matrix dimensionality: integer scalar/vector |
miss |
accept missing values: logical |
min |
lower limit: numeric |
max |
upper limit: numeric |
values |
only accept specific values: vector |
inf |
accept infinite ( |
null |
accept |
Examples
cornet:::.check(0.5,type="scalar",min=0,max=1)
[Package cornet version 0.0.9 Index]