The function periodogram does not check for dead animals, or for series that are full of ceros. When that series is fed to the lomb::lsp function it complains with:
Error in if (p > 0.01) p <- 1 - (1 - exPN)^effm :
missing value where TRUE/FALSE needed
The function periodogram does not check for dead animals, or for series that are full of ceros. When that series is fed to the lomb::lsp function it complains with: