When working with big data.frames with many variables it is often tedious to build subsets by typing the
columnnames. Here is where the function comes in offering a "point and click" approach for selecting the interesting
columns.
When x is a data.frame
the columnnames are listed,
when x is a factor the according levels are listed and in all other cases the list is filled with the unique elements of x.
SelectVarDlg()
checks for an option "selkey"
for defining the selection keywords, defined as a list of this structure:
file | the keywords to be interpreted as a filename, defaults to c("fn","file","filename") |
dir | the keywords to be interpreted as a directory name, defaults to c("path","dir") |
col | the keywords to be interpreted as a color, defaults to c("col","color") |
pch | the keywords to be interpreted as a point character, defaults to c("pch") |
It can be set with
options(selkey = list(file=c("fn","file","filename"),
dir=c("path","dir", "dirname"),
col=c("color", "col"),
pch=c("pch"))
)