Converts tabular data to ternary data, and perform some data-checks

Share:

Description

Converts tabular data to ternary data, and perform some data-checks

Usage

1
2
3
4
5
6
7
8
ternaryData(s, ...)

## S3 method for class 'character'
ternaryData(s, ...)

## S3 method for class 'ternarySystem'
ternaryData(s, x, .blrNames = NULL, .fracSum = NULL,
  testRange, testSum, ...)

Arguments

s

A ternarySystem object, as created with createTernarySystem, or a single character string. Can be missing.

x

A data.frame or a matrix containing point ternary data (x-y-x) to be tested.

.blrNames

See blrNames

.fracSum

See fracSum

testRange

Single logical. Test if the range of fraction is between 0 and the expected sum of fractions (1 or 100).

testSum

Single logical. Test if the sum of the 3 fractions is equal to the expected sum of fractions (1 or 100).

...

Additional parameters passed to ternarySystem-methods.

Value

Returns a ternaryData data.frame object.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.