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 caused by newly introduced NA columns in GMS Wahlrecht table #118

Closed
bauer-alex opened this issue Jan 5, 2020 · 0 comments
Closed

Error caused by newly introduced NA columns in GMS Wahlrecht table #118

bauer-alex opened this issue Jan 5, 2020 · 0 comments
Labels
bug

Comments

@bauer-alex
Copy link
Collaborator

@bauer-alex bauer-alex commented Jan 5, 2020

coalitions::get_surveys()

leads to Error in `[.data.frame`(atab, , !ind.empty) : undefined columns selected.
This is caused by the latest update of Wahlrecht's GMS table, which now leads to two trailing NA columns in the following dataset:

atab <- read_html(address) %>%
html_nodes("table") %>% .[[2]] %>%
html_table(fill = TRUE)

However, scrape_wahlrecht() currently cannot handle such NA columns.

@bauer-alex bauer-alex added the bug label Jan 5, 2020
@adibender adibender closed this in c1e1f08 Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.