selectColumnLabel {GCDkit}R Documentation

Selecting a single variable in GCDkit

Description

This is an auxiliary function invoked by many others to select a single variable.

Usage

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)

Arguments

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?

Details

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.

Value

A numeric index of the selected column.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

See Also

selectColumnsLabels


[Package GCDkit version 4.1 Index]