Skip to content
Prev 82214 / 398503 Next

extend.series not zero padding

Dear List,

I was trying to verify that I could use extend.series in the wavelets
package and kept getting an error when trying to use method="zero". I'm not
seeing where my syntax has gone awry.

According to the documentation, [see ?extend.series]
"  method: A character string indicating which extension method to use.
          Possible values are '"periodic"', '"reflection"', '"zero"',
          '"mean"', and '"reflection.inverse"'."

c<-cbind(0:60, 60:0) # setup a series, length will be 61
[1] 122
j=log(length(c),2)%/%1)
log(length(c),  : 
        Invalid argument value for 'method'

Other methods work great, such as method="mean".
j=log(length(c),2)%/%1)
[1] 128
Has this come up in anyone else's experience? If so, what's the workaround
so that I can use "zero" as a method?

Rgds,
KeithC.