I want to perform a Morlet Wavelet transform analysis (WTA) on a sequence of binary data (0, 1), length about 19000 observations. The result seems reasonable, but I have my doubts whether WTA can be performed on a binary dataset, not technically, but mathematically.


I used the most simple code in R with the `WaveletComp` package after filtering out the high frequency signal with the `astrochron` package


`res=bandpass(dat, flow=1/100000000, fhigh=1/10, win=0)`


`res_every10=analyze.wavelet(my.data= res, my.series =2, loess.span = 0, dt = 1, dj = 1/12, method="AR", params = list(AR=list(p=1)))`


I also attached a sample dataset [`here`](https://docs.google.com/spreadsheets/d/1SxdH5QJE6pJqP3KcavtvFkjJAQA8OWK3/edit?rtpof=true&sd=true#gid=1021614223). Thank you for the suggestions.



Morlet wavelet transform of binary dataset in R
Yes, this is a perfectly valid operation.


Here is one reference where a Morlet wavelet analysis has been applied to a binary data set: [Morlet wavelet transforms of heart rate variability for autonomic nervous system activity](https://www.researchgate.net/publication/280319349_Monet_wavelet_transforms_of_heart_rate_variability_for_autonomic_nervous_system_activity), see section 2.1.


