| design-helpers {edibble} | R Documentation |
Test and get edibble objects
Description
The is functions tests if an object (or an object in its attribute)
inherits particular class and returns TRUE if it does, otherwise FALSE.
-
is_edibble_designchecks if it inheritsedbl_design. -
is_edibble_graphchecks if it inheritsedbl_graph. -
is_edibble_tablechecks if it inheritsedbl_table -
is_edibblechecks if the object inheritsedbl. The search is quite simple, it checks if the object isedbl_design, failing that it looks to see if the attribute "design" of the object isedbl_design. -
is_named_designcheck if it inheritsNamedDesign.
The get functions extracts the requested edibble component (table, graph,
or design) from the object if possible.
-
edbl_designtries to getedbl_design. -
edbl_tabletries to getedbl_tablewith no design attribute. -
edbl_graphtries to getedbl_graph.
Usage
is_edibble_design(x)
is_named_design(x)
is_edibble_table(x)
is_edibble_graph(x)
is_edibble(x)
is_edibble_levels(x)
is_nest_levels(x)
is_cross_levels(x)
edbl_design(x)
edbl_table(x)
Arguments
x |
An object. |
Value
A logical value.
Examples
is_edibble_design(takeout())