Skip to content

Instantly share code, notes, and snippets.

@jlehtoma
Created September 23, 2012 07:47
Show Gist options
  • Save jlehtoma/3769239 to your computer and use it in GitHub Desktop.
Save jlehtoma/3769239 to your computer and use it in GitHub Desktop.
pxR crashes R with certain kinds of PX-Axis files
library(pxR)
# Finish municipal election data from Statistics Finland
good.px.url <- "http://pxweb2.stat.fi/database/StatFin/vaa/kvaa/2008_05/610_kvaa_2008_2009-10-30_tau_137_fi.px"
bad.px.url <- "http://pxweb2.stat.fi/Database/StatFin/vaa/kvaa/2008_04/410_kvaa_2008_2009-11-02_tau_123_fi.px"
# Works
good.px.object <- read.px(good.px.url)
# Crashes R
bad.px.object <- read.px(bad.px.url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment