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

country variable typos in CRAN logs #46

Open
lindbrook opened this issue Oct 29, 2019 · 0 comments
Open

country variable typos in CRAN logs #46

lindbrook opened this issue Oct 29, 2019 · 0 comments

Comments

@lindbrook
Copy link
Contributor

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.

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