Learn R Programming

traitr (version 0.14)

tableItem: List editor -- list <-> tree, must have special structure to list? XXX This needs writing An item to display a table of data (given as a matrix or data.frame)

Description

List editor -- list <-> tree, must have special structure to list? XXX This needs writing An item to display a table of data (given as a matrix or data.frame)

Usage

tableItem(value = data.frame(V1 = "", V2 = ""), name, label = name, help = "", tooltip = "", attr = list(expand = TRUE), model, editor, ...)

Arguments

value
Default value of data frame
name
Required name for object. Names should be unique within a group of items
label
ignored
help
Optional help string
tooltip
Optional tooltip to display
attr
A list of attributes to pass to widget on construction. Eg. attr=list(size=c(100,200)).
model
ignored
editor
ignored
...
Passed to parent proto object during call to proto

Value

A proto object. Call obj$show_help() to view its methods and properties.

See Also

Item

Examples

Run this code
## to change data frame
i <- tableItem(mtcars, name="a")
i$set_a(mtcars[1:3, 1:3])

Run the code above in your browser using DataLab