Cut: The simple version of CUTOFF

Description Usage Arguments Value References Examples

Description

The simple version of CUTOFF

Usage

1
Cut(data, cutoff = 0.75, method = "pearson", ID = FALSE, ...)

Arguments

data

a data matrix with missing values

cutoff

the cutoff value for the CUTOFF method

method

CUTOFF method to be used.

ID

If the reference information needs to be retained during the imputation if TRUE, then reference information can be retained from the returned list by calling ID. If FALSE, then no reference information will be retained.

...

other arguments

Value

If ID = FALSE, then return the imputed data matrix with no missing values. If ID = TRUE, then return a list of two components:

imputed

The imputed data matrix with no missing values

ID

The reference information during the imputation

References

Lingbing Feng, Gen Nowak, Alan. H. Welsh and Terry. J. O'Neill (2014): CUTOFF: A Spatio-temporal Imputation Method, Journal of Hydrology. (submitted)

Examples

1
2
3
4
5
6
data(hqmr.data)
#' # check the number of missing values
nmissing(hqmr.data[, -79])
# impute the data by the CUTOFF method
impdata <- Cut(data = hqmr.data)
nmissing(impdata)

cutoffR documentation built on May 2, 2019, 6:12 a.m.