You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible for a user to specify a center argument that has more NA than the number of NA in x + n - 1. This can even happen internally, for example with CCI:
One possible solution is to set NAs to max(sum(is.na(x)), sum(is.na(center))) when center is user-specified. Note that we should also check for non-leading NA in center, as we do forx`.
The text was updated successfully, but these errors were encountered:
It's possible for a user to specify a
center
argument that has moreNA
than the number ofNA
inx
+n - 1
. This can even happen internally, for example withCCI
:This is because
DEMA
has moreNA
thann
, due to double-smoothing.One possible solution is to set
NAs
tomax(sum(is.na(x)), sum(is.na(center)))
whencenter
is user-specified. Note that we should also check for non-leadingNA
incenter, as we do for
x`.The text was updated successfully, but these errors were encountered: