I changed extractMoreauBroto() to return NA's for every lag >= nchar(x) and issue a warning when the length of the sequence, nchar(x), is less than or equal to nlag.
Fixes #2
One could also just use stop instead of warning to halt execution with an error.
I am using the function from a script that calls it on a diverse set of sequences, so I prefer to have NA's.
I changed
extractMoreauBroto()
to return NA's for every lag >= nchar(x) and issue a warning when the length of the sequence,nchar(x)
, is less than or equal tonlag
. Fixes #2