rOpenGov / pxweb

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

Error in listElem$values : $ operator is invalid for atomic vectors #134

Closed magnusmki closed 5 years ago

magnusmki commented 6 years ago

When trying to retrieve data from Statice (px.hagstofa.is), this error is thrown for quite many tables, but not all of them:

Error in listElem$values : $ operator is invalid for atomic vectors

The error can be created, for this table, for example:

d=interactive_pxweb() 1: 10. [px.hagstofa.is] Statistics Iceland 1: 1 [1] is 1: 2 [2] Efnahagur 1: 4 [utanrikisverslun] Utanríkisverslun 1: 1 [1_voruvidskipti] Vöruviðskipti 1: 2 [02_uttollskra] Tollskrárnúmer - útflutningur 1: 1 [UTA02801.px] Útflutningur eftir tollskrárnúmerum 2016-2017, kafli 1-40 1: y 1: y 1: n

Kind regards MK

magnusmki commented 6 years ago

Another issue i ran into, while using interactive_pxweb() was:

Error in batches$dims[[batch_no]][[dimNames[i]]] : attempt to select less than one element in get1index

MansMeg commented 6 years ago

Thank you! I have the intention to fix this this spring by doing a rewrite of the package.

Måns

MansMeg commented 5 years ago

This has now been fixed with the new pxweb package, Thanks for the issue!