Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stdType

Provide Default Behavior for listSelect Helper Functions


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

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

Examples

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

R based tk widgets

v1.68.0
Artistic-2.0
Authors
J. Zhang <jzhang@jimmy.harvard.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.