Skip to content

Commit

Permalink
Update shanghai_petition.R
Browse files Browse the repository at this point in the history
  • Loading branch information
xinzhuohkust authored Aug 22, 2023
1 parent 345ba25 commit dfae9ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shanghai_petition.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ done <- list.files("/home/runner/work/auto_scrape/auto_scrape/data", pattern = "
map(\(x) mutate(x, across(everything(), as.character))) %>%
bind_rows() %>%
mutate(across(everything(), ~ na_if(., "error!"))) %>%
filter(complete.cases(.))
filter(complete.cases(.)) %>%
distinct(links, .keep_all = TRUE)

table <- table %>%
anti_join(done, "links")
Expand Down

0 comments on commit dfae9ad

Please sign in to comment.