summaryByGroup {GCDkit} | R Documentation |
The function 'summaryByGroup
' prints a statistical summary for selected
list of elements (majors as a default) and the whole dataset or its selection,
respecting the current grouping. Functions 'summaryByGroupMjr
' and
'summaryByGroupTrc
' are entry points supplying the default lists for
major- and trace elements. The function 'summaryByGroupTrc
'
returns only ranges of the given parameter(s).
summaryByGroup(elems = major, where = NULL, show.boxplot = FALSE, show.hist = FALSE, silent = TRUE) summaryByGroupMjr() summaryByGroupTrc() summaryRangesByGroup(elems=major, where=NULL, silent=TRUE)
elems |
list of desired elements |
where |
list of desired samples to be processed |
show.boxplot |
logical, should be plotted the boxplots? |
show.hist |
logical, should be plotted the histograms? |
silent |
logical, should be the above chosen by the appropriate dialogues? |
The statistical summary involves number of observations, missing values, mean, standard deviation, minimum, 25% quartile, median (= 50% quartile), 75% quartile and maximum. The function also plots a summary boxplots and histograms, if desired so.
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 defaults are lists of major (SiO2, TiO2, Al2O3, FeOt, MnO, MgO,
CaO, Na2O,
K2O)
or trace (Rb, Sr, Ba, Cr, Ni, La, Eu, Y, Zr)
elements, respectively.
The desired variables are selected using the function
'selectColumnsLabels
'.
In the specification of the variable can be used also
arithmetic expressions, see calcCore
for the correct syntax.
results |
a list with the results for individual groups |
Vojtech Janousek, vojtech.janousek@geology.cz
summaryByGroup(LILE) summaryByGroup(LILE,show.hist=TRUE) summaryByGroup(LILE,show.boxplot=TRUE) # user-defined list my.elems<-c("Rb","Sr","Ba/Sr") summaryByGroup(my.elems) ## Not run: summaryByGroupTrc() summaryByGroupMjr() summaryRangesByGroup(elems="Rb/Sr,Na2O+K2O") ## End(Not run)