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

Error in dst_date_parse: week numbers error #25

Open
aleksandrsa opened this issue Oct 21, 2021 · 0 comments
Open

Error in dst_date_parse: week numbers error #25

aleksandrsa opened this issue Oct 21, 2021 · 0 comments

Comments

@aleksandrsa
Copy link

aleksandrsa commented Oct 21, 2021

Hello,

I've run into an issue that seems to be related to a date format that is not specified in the dst_date_parse function — weekly data where week numbers are defined as YYYYUNN (e.g., "2007U01").

Sample case:

data <- dkstat::dst_get_data(
  table = "dodc2",
  OMRÅDE = "All Denmark",
  KØN = "Total",
  ALDER = "Total",
  Tid = "*",
  lang = "en",
  format = "BULK"
)

The error message is as follows:

Error in dst_date_parse(dst_date = dst_data$TID) (test.R#120): 
None of the regular expressions were matched. 
Please inspect the dates.

Update: noticed that the date conversion step can be turned off entirely by respective parameter parse_dst_tid = FALSE.

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

No branches or pull requests

1 participant