printSamples {GCDkit}R Documentation

Display samples

Description

Displays specified combination of numeric variable(s) and/or labels for selected range of samples.

Usage

printSamples(elems=NULL,which=NULL,select.samples=FALSE,print=TRUE)

Arguments

elems

list of variables to be printed

which

list of samples, useful only for select.samples=FALSE

select.samples

logical: if TRUE, samples can be chosen using the appropriate dialogue

print

logical: should be the result indeed printed or just returned for further evaluation?

Details

This function prints the desired numerical columns, textual labels, or their combinations, for selected samples.

The samples can be selected based on combination of three searching mechanisms (by sample name/label, range or a Boolean condition) - see selectSamples for details.

The variables to be printed are chosen by the function 'selectColumnsLabels'. In the specification of the variable can be used also arithmetic expressions, see calcCore for the correct syntax.

Value

results

data matrix with the desired data for the specified samples

Author(s)

Vojtěch Janoušek, vojtech.janousek@geology.cz

Examples

## Not run:  
# Querying names of numeric data columns

Search pattern = SiO2, MgO, CaO 

Search pattern = major
SiO2, TiO2, Al2O3, Fe2O3, FeO, MnO, MgO, CaO, Na2O, K2O, P2O5 

Search pattern = LILE
Rb, Sr, Ba, K, Cs, Li

Search pattern = HFSE
Nb, Zr, Hf, Ti, Ta, La, Ce, Y, Ga, Sc, Th, U

Search pattern = REE
La, Ce, Pr, Nd, Sm, Eu, Gd, Tb, Dy, Ho, Er, Tm, Yb, Lu

Search pattern = Locality,SiO2,LILE,HFSE
Locality, SiO2, Rb, Sr, Ba, K, Cs, Li, Nb, Zr, Hf, Ti, 
Ta, La, Ce, Y, Ga, Sc, Th, U

Search pattern = 1:5, 7  
Numeric data columns number 1, 2, ...5, 7

# User-defined list
my.elems<-c("Rb","Sr","Ba")
Search pattern = my.elems
Rb, Sr, Ba

## End(Not run)

[Package GCDkit version 6.1 Index]