recast {GCDkit} | R Documentation |
Recasts the selected data to a fixed sum.
recast(total = 100) normalize2total(what = NULL, total = 100)
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. |
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
'.
results |
numerical vector/matrix with the results |
Vojtech Janousek, vojtech.janousek@geology.cz
normalize2total(major,1) recast() # to select the sum and elements interactively