| plgraphics-internal | R Documentation |
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.
Check if argument is of mode formula
row.names if x is a matrix or data.frame,
otherwise give the names back
check which elements of x are not contaied in
y
check if argument is logical
and TRUE, ...
define: if the first argument is
either null or NA, return value,
if it is TRUE, return valuetrue,
if it is FALSE, return valuefalse
check if ploptions("debug") is TRUE
set debug level and action:
if argument on if TRUE or >=1,
call browser on error,
if on>1, additionally convert warnings into errors,
if on==0, reset to usual error and warning handling
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)
x, y, object |
R objects |
on |
logical |
arg, value, valuetrue, valuefalse |
see above |
see description of purpose
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.