pickItems {tkWidgets} | R Documentation |
Given a vector of characters, this function creates a widget containing list box to allow users to visually select elements from the vector.
pickItems(items, title1 = "Items to pick", title2 = "Picked items")
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 |
This function is to provide visual support to other functions and thus may not have much use otherwise.
This function returns a vector of select items.
Jianhua Zhang
R tcltk
options <- paste("Option", 1:10, sep = "") if(interactive()){ pickItems(options) }