stdType: Provide Default Behavior for listSelect Helper Functions

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/stdType.R

Description

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

Usage

1
2
stdType(toCheck)
stdView(toView)

Arguments

toCheck, toView

arbitrary R object.

Details

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

Value

stdType() returns a character string describing the type of the R object.

stdView()

Author(s)

Jianhua Zhang

See Also

listSelect

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)
 }

tkWidgets documentation built on Nov. 8, 2020, 5:17 p.m.