plgraphics-internal {plgraphics} | R Documentation |
Internal 'plgraphics' Objects
Description
Internal functions of package plgraphics that are exported, but will normally not be called by the user directly. They mostly are simple shortcuts, combining two or a few R commands.
- is.formula
Check if argument is of
mode
formula
- RNAMES
coderow.names if
x
is a matrix or data.frame, otherwise give thenames
back- %nin%
check which elements of
x
are not contaied iny
- u.true, u.false, u.notfalse
check if argument is logical and
TRUE, ...
- i.def
define: if the first argument is either null or
NA
, returnvalue
, if it isTRUE
, returnvaluetrue
, if it isFALSE
, returnvaluefalse
- u.debug
check if
ploptions("debug")
isTRUE
- DB
set debug level and action: if argument
on
ifTRUE
or>=1
, callbrowser
on error, ifon>1
, additionally convert warnings into errors, ifon==0
, reset to usual error and warning handling
Usage
is.formula(object)
RNAMES(x)
x %nin% y
u.true(x)
u.false(x)
u.notfalse(x)
i.def(arg, value = TRUE, valuetrue = value, valuefalse = FALSE)
u.debug()
DB(on=TRUE)
Arguments
x , y , object |
R objects |
on |
logical |
arg , value , valuetrue , valuefalse |
see above |
Value
see description of purpose
Examples
i.def(NA, 10, 20, 30) ## 10
i.def(TRUE, 10) ## 10
i.def(TRUE, 10, 20) ## 20
i.def(FALSE, 10, 20, 0) ## 0
u.true(1) ## FALSE, since 1 is not of mode logical
u.notfalse(2) ## TRUE
u.notfalse(FALSE) ## FALSE