SelectVarDlg
is a GUI utility, which brings up a dialog and lets the user select elements (either variables of a data.frame or
levels of a factor) by point and click in a listbox. The list of selected items is written to the clipboard so
that the code can afterwards easily be pasted in the source file.SelectVarDlg(x, ...)
## S3 method for class 'default':
SelectVarDlg(x, useIndex = FALSE, ...)
## S3 method for class 'factor':
SelectVarDlg(x, ...)
## S3 method for class 'data.frame':
SelectVarDlg(x, ...)
select.list
data(d.pizza)
SelectVarDlg(x = d.pizza, T)
SelectVarDlg(x = d.pizza$driver )
x <- replicate(10, paste( sample(LETTERS, 5, replace = TRUE), collapse="") )
SelectVarDlg(x)
Run the code above in your browser using DataLab