Learn R Programming

EMMAgeo (version 0.9.7)

check.data: Check correctness and consistency of input data

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

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.

See Also

EMMA

Examples

Run this code
# NOT RUN {
## 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)

# }

Run the code above in your browser using DataLab