Learn R Programming

EMMAgeo (version 0.9.4)

check.data: Function to check data consistency.

Description

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

Usage

check.data(X, q, l, c, invisible = TRUE, ...)

Arguments

X

Numeric matrix with m samples (rows) and n variables (columns).

q

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

l

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

c

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

invisible

Logical scalar setting visibility option.

Further arguments passed to the function.

Value

Character vector with test results.

References

Dietze E, Hartmann K, Diekmann B, IJmker J, Lehmkuhl F, Opitz S, Stauch G, Wuennemann B, Borchers A. 2012. An end-member algorithm for deciphering modern detrital processes from lake sediments of Lake Donggi Cona, NE Tibetan Plateau, China. Sedimentary Geology 243-244: 169-180.

See Also

EMMA

Examples

Run this code
# NOT RUN {
## load example data set
data(X, envir = environment())

## 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