precip_hydroMet {hydroToolkit} | R Documentation |
Make homogeneity test or fill gaps in a series
Description
This method can do both: test homogeneity in precipitation series or fill data gaps using regional analysis.
Usage
precip_hydroMet(
obj,
col_target = 2,
fill = FALSE,
method = "spearman",
min_value = 0.2
)
## S4 method for signature 'hydroMet_compact'
precip_hydroMet(
obj,
col_target = 2,
fill = FALSE,
method = "spearman",
min_value = 0.2
)
Arguments
obj |
an |
col_target |
numeric. The column number of the target series (either to test homogeneity or to fill gaps) in |
fill |
logical. By default value ( |
method |
string (default is |
min_value |
numeric. Series with a correlation value less than |
Value
If fill = FALSE
the method will return a list with three elements: a data frame with all necessary values to correct your target serie, a plot with p-values
and the correlation matrix. When fill = TRUE
the list will contain: the data frame with the target series gaps filled and the correlation matrix.
Functions
-
precip_hydroMet,hydroMet_compact-method
: homogeneity test applied to precipitation data stored incompact
class.
Examples
# Load daily precipitation data-set from BDHI
load( paste0(system.file('extdata', package = "hydroToolkit"), '/bdhi_p.rda') )
# Fill gaps in Tupungato station
relleno <- precip_hydroMet(obj = bdhi_p, col_target = 5, fill = TRUE)