View source: R/compositionsCompatibility.R
| gsi.produceV | R Documentation | 
Given a representation specification for compositions, this function creates the matrix of logcontrasts and provides a suitable prefix name for naming variables.
gsi.produceV(
  V = NULL,
  D = nrow(V),
  orignames = rownames(V),
  giveInv = FALSE,
  prefix = NULL
)
V | 
 either a matrix of logcontrasts or, most commonly, one of "clr", "ilr" or "alr"  | 
D | 
 the number of components of the composition represented  | 
orignames | 
 the names of the components  | 
giveInv | 
 logical, is the inverse logcontrast matrix desired?  | 
prefix | 
 the desired prefix name, if this is wished to be forced.  | 
A list with at least two elements
V containing the final matrix of logcontrasts
prefix  containing the final prefix for names of transformed variables
W eventually, the (transposed, generalised) inverse of V, if giveInv=TRUE
gsi.produceV("alr", D=3)
gsi.produceV("ilr", D=3, orignames = c("Ca", "K", "Na"))
gsi.produceV("alr", D=3, orignames = c("Ca", "K", "Na"), giveInv = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.