rk.XML.vars | R Documentation |
This function will create a <frame> node including a <varselector> and a <varslot> node. It is
actually a wrapper for rk.XML.varslot
and
rk.XML.varselector
,
since you usually won't define one
without the other.
rk.XML.vars( label, slot.text, required = FALSE, multi = FALSE, duplicates = FALSE, min = 1, any = 1, max = 0, dim = 0, min.len = 0, max.len = NULL, classes = NULL, types = NULL, horiz = TRUE, add.nodes = NULL, frame.label = NULL, formula.dependent = NULL, dep.options = list(), id.name = "auto", help = NULL, component = rk.get.comp() )
label |
Character string, a text label for the variable browser. |
slot.text |
Character string, a text label for the variable selection slot. |
required |
Logical, whether the selection of variables is mandatory or not. |
multi |
Logical, whether the varslot holds only one or several objects. |
duplicates |
Logical,
if |
min |
If |
any |
If |
max |
If |
dim |
The number of dimensions, an object needs to have. If |
min.len |
The minimum length, an object needs to have. |
max.len |
The maximum length, an object needs to have. If |
classes |
An optional character vector, defining class names to which the selection must be limited. |
types |
If you specify one or more variables types here, the varslot will only accept objects of those types. Valid types are "unknown", "numeric", "string", "factor", "invalid". Optional, use with great care, the user should not be prevented from making valid choices, and rkward does not always know the type of a variable! |
horiz |
Logical. If |
add.nodes |
A list of objects of class |
frame.label |
Character string, a text label for the whole frame. |
formula.dependent |
Character string,
if not |
dep.options |
A named list with optional attributes for the |
id.name |
Character vector, unique IDs for the frame (first entry),
the varselector (second entry)
and varslot (third entry). If |
help |
Character string or list of character values and XiMpLe nodes,
will be used as the |
component |
Character string,
name of the component this node belongs to. Only needed if you
want to use the scan features for automatic help file generation; needs |
An object of class XiMpLe.node
.
rk.XML.varslot
,
rk.XML.varselector
,
and the Introduction to Writing Plugins for RKWard
test.vars <- rk.XML.vars("Select some vars", "Vars go here") cat(pasteXML(test.vars))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.