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

pickItems

Function that builds a widget to allow users to select items from available sources


Description

Given a vector of characters, this function creates a widget containing list box to allow users to visually select elements from the vector.

Usage

pickItems(items, title1 = "Items to pick", title2 = "Picked items")

Arguments

items

items a vector for the available source elements to be selected

title1

title1 a character string for the title of the list box that shows the list of items to be selected from

title2

title2 a character string for the title of the list box that shows the items that have been selected

Details

This function is to provide visual support to other functions and thus may not have much use otherwise.

Value

This function returns a vector of select items.

Author(s)

Jianhua Zhang

References

R tcltk

See Also

Examples

options <- paste("Option", 1:10, sep = "")
if(interactive()){
    pickItems(options)
}

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.