stdType {tkWidgets} | R Documentation |
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.
stdType(toCheck)
stdView(toView)
toCheck , toView |
arbitrary R object. |
These functions can be viewed as exmaples of defining functions for
the typeFun
and valueFun
arguments of the
listSelect
function.
stdType()
returns a character string describing the type of the
R object.
stdView()
Jianhua Zhang
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)
}