selectColumnLabel {GCDkit} | R Documentation |
This is an auxiliary function invoked by many others to select a single variable.
selectColumnLabel(where = colnames(labels), message = "Select the variable\nor press ENTER to pick from a list", default = "", sample.names = FALSE, silent = FALSE, print = TRUE, empty.ok = TRUE)
where |
names of data columns to choose from |
message |
prompt |
default |
comma delimited list of default names |
sample.names |
logical; should be the sample names listed |
silent |
logical, echo on/off |
print |
logical, echo on/off |
empty.ok |
is empty selection ok? |
The easiest way for specification of the variable is to type directly the name
of the numerical column in the data matrix 'WR
' (e.g., 'SiO2') or its
sequence number (2 for the second column). However, it is not necessary to enter
the name in its entirety. Only a substring that appears somewhere in the column
name or other forms of regular.expressions
can be specified.
If the result is ambiguous, the correct variable has to be selected by mouse from the list of the multiple matches. Ultimately, empty response invokes list of all variables available in the memory.
A numeric index of the selected column.
Vojtech Janousek, vojtech.janousek@geology.cz