Learn R Programming

traitr (version 0.3)

tableItem: List editor -- list <-> tree, must have special structure to list?

Description

List editor -- list <-> tree, must have special structure to list? 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(), 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.

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