tkWidgets (version 1.50.0)

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

Value

This function returns a vector of select items.

Details

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

References

R tcltk

See Also

dataViewer

Examples

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

Run the code above in your browser using DataLab