Skip to content

Instantly share code, notes, and snippets.

@sammachin
Created August 20, 2014 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sammachin/8a26709f2084856de567 to your computer and use it in GitHub Desktop.
Save sammachin/8a26709f2084856de567 to your computer and use it in GitHub Desktop.
rjstat problems
# Using v0.1 copy from our GitHub repo
install_github("rjstat", "ONSDigital")
url <- "http://s3.sammachin.com/QS103EW.json"
results <- fromJSONstat(readLines(url))
length(results$`Age by single year`$value)
[1] 102
# Using v0.2 from ajschumacher
install_github("rjstat", "ajschumacher")
url <- "http://s3.sammachin.com/QS103EW.json"
results <- fromJSONstat(readLines(url))
length(results$`Age by single year`$value)
[1] 914430
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment