r-hub / cranlogs

Download Logs from the RStudio CRAN Mirror
https://r-hub.github.io/cranlogs/
Other
79 stars 13 forks source link

country variable typos in CRAN logs #46

Open lindbrook opened 4 years ago

lindbrook commented 4 years ago

I believe there are two "universal" typos in the country variable (probably) across all RStudio CRAN logs: "A1" (A + number one) and "A2" (A + number 2).

For what it's worth, using "2019-10-23" as an example (Wednesdays are usually high traffic days), here's the code I used:

#

ymd <- as.Date("2019-10-23") year <- as.POSIXlt(ymd)$year + 1900 rstudio.url <- "http://cran-logs.rstudio.com/" url <- paste0(rstudio.url, year, '/', ymd, ".csv.gz") cran_log <- data.table::fread(url) sort(unique(cran_log$country)) #

"A1" and "A2" are the first two elements of the vector. I haven't found any other country codes with numbers mixed in.