Learn R Programming

CoDaImpact (version 0.1.0)

check_Xvar: Internal: check for valid name of Xvar

Description

Users should always specify Xvar as "NAME_SIMPLEX", which means before log-ratio transformations.

Usage

check_Xvar(
  Xvar,
  trSry,
  return_type = c("NAME_SIMPLEX", "NAME_COORD", "pos")[1]
)

Value

a single integer or character

Arguments

Xvar

a character or numeric indicating the direction

trSry

a character indicating the names of the vertices

Author

Lukas Dargel