check.data: Check correctness and consistency of input data

Description Usage Arguments Value Author(s) See Also Examples

Description

The input data matrix (X), number of end-members (q), weight transformation limits (l) and constant sum scaling parameter (c) are checked. This includes checking for absence of missing values, columns containing only zero-values and for numeric data type of all variables. A furthercheck tests if l is below the maximum possible value, preventing numerical instability prior to factor rotation.

Usage

1
check.data(X, q, l, c, ...)

Arguments

X

Numeric matrix, input data set with m samples (rows) and n variables (columns).

q

Numeric scalar, number of end-members to be modelled.

l

Numeric scalar or vector, weight transformation limit, i.e. quantile.

c

Numeric scalar, constant sum scaling parameter, e.g. 1, 100, 1000.

...

Further arguments passed to the function.

Value

Character vector, verbose test results.

Author(s)

Michael Dietze, Elisabeth Dietze

See Also

EMMA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## load example data set
data(example_X)

## perform data set check
check.data(X = X, 
           q = 6, 
           l = seq(from = 0, 
                   to = 0.2, 
                   by = 0.01), 
           c = 1)

coffeemuggler/EMMAgeo documentation built on June 4, 2019, 4:02 p.m.