I believe that you can extend it to the power of 2 by padding it with
zeros.  I don't remember if it is at the begining or the end of the
time series.
hth

stephen

On Fri, Oct 23, 2009 at 7:56 AM, Ashta <sewa...@gmail.com> wrote:
> Hi all,
>
> I am trying to do wavelets and I got  an error message saying "The
> length of data is not a power of 2"
> Is there a way of handing  that? or should the data length be  exactly
> the power of  2?
> I am using   R version 2.9.2 (2009-08-24)
> The is  library(wavethresh).
>
> wds <- wd(ds$v,filter.number=1)
>
> Thanks
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Stephen Sefick

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

                                                                -K. Mullis

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to