Description Usage Arguments Details Value
Interpolation of time-series data where only some cross-sections are available.
1 2 3 4 5 6 7 8 9 | interpolate_pg_timeseries(
pgdf,
variable,
date_var = "year",
interval = "1 year",
startdate = NULL,
enddate = NULL,
add_pg_index = TRUE
)
|
pgdf |
output from PRIO-GRID gen_*() function. |
variable |
the variable to interpolate missing values from. |
date_var |
string denoting the name of the date variable. Defaults to "year". |
interval |
string denoting the interval between interpolated values, i.e. the temporal resolution. Defaults to "1 year". |
startdate |
starting date. Defaults to the earliest observation in the original data. |
enddate |
end date. Defaults to the latest observation in the original data. |
add_pg_index |
boolean, whether to add a pgid column or not. Default is TRUE. |
'interval' can be specified as '"day"', '"week"', '"month"', '"quarter"' or '"year"'. See 'seq.Date' for details.
Interpolated time-series data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.