mc_prep_fillNA | R Documentation |
This function approximate NA (missing) values. It was designed to fill only small gaps in microclimatic time-series therefore, the default maximum length of the gap is 5 missing records and longer gaps are not filled Only linear method is implemented from zoo::na.approx function.
mc_prep_fillNA(
data,
localities = NULL,
sensors = NULL,
maxgap = 5,
method = "linear"
)
data |
cleaned myClim object see myClim-package |
localities |
names of localities; if NULL then all (default NULL) |
sensors |
names of sensors; if NULL then all (default NULL) see |
maxgap |
maximum number of consecutively NA values to fill (default 5) |
method |
used for approximation. It is implemented now only "linear". (default "linear") |
myClim object with filled NA values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.