Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bfast01: stl="both" results in an empty formula #43

Open
GreatEmerald opened this issue Dec 4, 2019 · 0 comments
Open

bfast01: stl="both" results in an empty formula #43

GreatEmerald opened this issue Dec 4, 2019 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@GreatEmerald
Copy link
Collaborator

Running bfast01(stl="both") always results in an error:

library(bfast)
mts = ts(1:10, 2000, 2011, frequency=20)
bfast01(mts, stl="both")
#> Error in parse(text = x, keep.source = FALSE): <text>:2:0: unexpected end of input
#> 1: response ~ 
#>    ^

Created on 2019-12-04 by the reprex package (v0.2.0).

This is because the corresponding component is removed from the formula, and "both" removes both of them, resulting in an empty formula.

I don't know what the fix should be: either not allow passing "both", or perhaps not filter the components out.

@GreatEmerald GreatEmerald added bug Something isn't working help wanted Extra attention is needed labels Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant