plgraphics-internal: Internal 'plgraphics' Objects

plgraphics-internalR 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 the names back

%nin%

check which elements of x are not contaied in y

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, return value, if it is TRUE, return valuetrue, if it is FALSE, return valuefalse

u.debug

check if ploptions("debug") is TRUE

DB

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

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

plgraphics documentation built on Oct. 19, 2023, 3 p.m.