tkWidgets (version 1.50.0)

stdType: Provide Default Behavior for listSelect Helper Functions

Description

The function listSelect takes two functions which define how the type information and content of Robjects will be shown on the widget created by listSelect. Functions stdType() and stdView() provide the default behavior.

Usage

stdType(toCheck)
stdView(toView)

Arguments

toCheck, toView
arbitrary Robject.

Value

  • stdType() returns a character string describing the type of the Robject.

    stdView()

Details

These functions can be viewed as exmaples of defining functions for the typeFun and valueFun arguments of the listSelect function.

See Also

listSelect

Examples

Run this code
stdType(123)
stdType("What am I")

str(mydf <- data.frame(x = 2:8, ch = letters[1:7]))
stdType(mydf)# "list"
stdType(stdType)

if(interactive()) {## stdView() needs UI:
  stdView(1:10)
  stdView(mydf)
 }

Run the code above in your browser using DataLab