rOpenGov / pxweb

R tools to access PX-WEB API
http://ropengov.github.io/pxweb
Other
69 stars 31 forks source link

Feature request. How to get the last timeperiod only and more? #197

Closed larpSTATGL closed 4 years ago

larpSTATGL commented 4 years ago

Wonder if you could add a feature to ease the process to get the last 1-to-many timeperiods, intervals, and also also irregular periods like 'latest,minus1,minus4,minus6,minus12'

:-) Lars

MansMeg commented 4 years ago

Thanks for the request!

So I think this should work if you use a JSON query. Although it is not implemented in the pxweb interactive. The reason is that I do not know what type of choices that are available through the API.

I have opened up issues at the pxweb repo of stat sweden, bet they have not responded for more than six months so I do not know if and when this would be possible from within the R package.

MansMeg commented 4 years ago

Alright. Now StatSweden has responeded that they will not provide this information through the API so hence I cannot do this in the interactive part until pxweb 2.0, but that is probably in 2021 at the earliest (according to Stat Sweden).