I have a daily time series with 30 years of data for a number of stations. I am using the biwavelet
package in R to test for periodicity in data using the following code
di <- data.frame(d1$date, d1$t_min)
wt.t1 = wt(di)
par(oma = c(0, 0, 0, 1), mar = c(5, 4, 4, 5) + 0.1)
plot(wt.t1, plot.cb = TRUE, plot.phase = FALSE)
I got this error when when running the codes
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
0 (non-NA) cases
Some of the datasets I am using have some missing daily value in each year. I am quite new R and programming. It seems that the missing value will lead to such error when using biwavelet package? My question is there any way to solve this issue in R?