Don't remove duplicate rows from ARRL scraper.
Something going on here where the numbers change but the date on the page doesn't.
This commit is contained in:
parent
c7a2fbddb8
commit
1f9cfb8f9c
@ -40,11 +40,11 @@ write.table(tab, file = "out/arrl-fcc-licenses-scraped.csv", sep = ",",
|
|||||||
na = "")
|
na = "")
|
||||||
|
|
||||||
# Clean up table to remove any duplicates (sometimes the page isn't updated regularly)
|
# Clean up table to remove any duplicates (sometimes the page isn't updated regularly)
|
||||||
db <- read.csv("out/arrl-fcc-licenses-scraped.csv")
|
# db <- read.csv("out/arrl-fcc-licenses-scraped.csv")
|
||||||
db2 <- db %>% distinct(.keep_all = TRUE) %>%
|
# db2 <- db %>% distinct(.keep_all = TRUE) %>%
|
||||||
filter(Date != "Date")
|
# filter(Date != "Date")
|
||||||
write.csv(db2, "out/arrl-fcc-licenses-scraped.csv",
|
# write.csv(db2, "out/arrl-fcc-licenses-scraped.csv",
|
||||||
quote = F,
|
# quote = F,
|
||||||
row.names = F,
|
# row.names = F,
|
||||||
na = "")
|
# na = "")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user