recast {GCDkit}R Documentation

Recast to given sum

Description

Recasts the selected data to a fixed sum.

Usage

recast(total = 100)

normalize2total(what = NULL, total = 100)

Arguments

what

numeric matrix or character vector with a list of column names to be normalized, separated by commas.

total

a sum the data should be normalized to.

Details

Both functions return the selected elements/oxides (columns in the data matrix 'WR') normalized to the required sum. The function 'recast' is front-end to 'normalize2total'. If 'what' is a comma delimited list, the corresponding columns from the data matrix 'WR' are selected. If 'what' is empty, the user is prompted to supply the list of required column names via the function 'selectColumnsLabels'.

Value

results

numerical vector/matrix with the results

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

Examples

normalize2total(major,1)
recast() # to select the sum and elements interactively

[Package GCDkit version 4.0 Index]