Description Usage Arguments Value Examples
View source: R/mg_function_longest_complete_ts.R
Takes hydraulic head time series dataframe and extracts for each dataset the longest complete time series
1 2 3 4 5 6 7 8 | mg_function_longest_complete_ts(
df,
date_column_name,
value_column_name,
id_column_name,
n_allowed_missing_values_days,
minimum_timespan_ts_years
)
|
df |
dataframe which contains the value and date column |
date_column_name |
column name of the date column (should be format date) |
value_column_name |
column name of the value column (numeric format) |
id_column_name |
column name ofidentifier column (e.g. name of Grundwasssermessstelle) (character format) |
n_allowed_missing_values_days |
timespan in number of days for which missing values are allowed |
minimum_timespan_ts_years |
number of years which the ts should have at least (float) |
subset of initial dataframe which satisfies the conditions minimum_timespan_ts_years and n_allowed_missing_values_days
1 2 3 4 5 6 | mg_function_longest_complete_ts(df = wasserstand_projekt,
date_column_name = "datum",
value_column_name = "mess_wert",
id_column_name = datenquelle,
n_allowed_missing_values_days = 60,
minimum_timespan_ts_years = 2.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.