Statistics Sweden offer their data in the following four file formats:
Choose the first alternative: "PC-Axis fil". In order to access the data with R, install the pxR-package.
install.packages("pxR")
To get a data frame with data from a PC-Axis file named "BE0101N1.px
", use:
my.px.obj <- read.px("BE0101N1.px") my.data <- as.data.frame(my.px.obj)