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

genhol.R - event.st.added not found #261

Closed
FransAndersen opened this issue Mar 30, 2021 · 1 comment · Fixed by #285
Closed

genhol.R - event.st.added not found #261

FransAndersen opened this issue Mar 30, 2021 · 1 comment · Fixed by #285
Labels

Comments

@FransAndersen
Copy link

FransAndersen commented Mar 30, 2021

holiday     <- timeDate::holiday(year=1993:2021, Holiday='NewYearsDay')
holiday.reg <- seasonal::genhol(x = as.Date(holiday), frequency = 12, center = "calendar")

Error in cut(event.st.added, by, labels = F) : 
  object 'event.st.added' not found

It looks like event.st.added is declared inside an if-statement but used outside, see row 206 and 216 in genhol.R

@christophsax
Copy link
Owner

You are right, thanks! Will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants