It'd be nice to be able to say "mean(i)" for ifmissing, i.e. get the mean of i values either from the start or end, depending on which end you fell off. Possibly this should even be the default, for projection / hindcast it'd be the most obvious thing to do.
Whilst this could be relatively easily implemented in C++ (which uses a std::map with an ordering), R doesn't have anything like that available, possibly a condition would have to be generated at compile time?
It'd be nice to be able to say "mean(i)" for ifmissing, i.e. get the mean of i values either from the start or end, depending on which end you fell off. Possibly this should even be the default, for projection / hindcast it'd be the most obvious thing to do.
Whilst this could be relatively easily implemented in C++ (which uses a std::map with an ordering), R doesn't have anything like that available, possibly a condition would have to be generated at compile time?