make_well_ts: Get full time series with missing values interpolated

View source: R/makeWellTS.R

make_well_tsR Documentation

Get full time series with missing values interpolated

Description

Takes a dataframe with monthly values and creates a full time series, interpolating missing values.

Usage

make_well_ts(df, trim = TRUE, head = 0.1, tail = 0.9, n_consec = 4)

Arguments

df

A monthly dataframe created by 'monthlyValues'. Must minimally include fields ‘EMS_ID', 'Well_Num' 'Date', ’med_GWL', 'nReadings'

trim

Should leading and trailing missing values in be removed? See [trim_cons_runs()].

head

(Proportion between 0 and 1, default = 0.1) The beginning portion of the vector in which to look for consecutive missing values

tail

(Proportion between 0 and 1, default = 0.9) The end portion of the vector in which to look for consecutive missing values

n_consec

The number of consecutive values which constitutes a 'long' run (default = 4)

Value

A full monthly time series with interpolated missing values, retaining all of the columns in the original data frame.


bcgov/bcgroundwater documentation built on March 18, 2024, 5:43 a.m.