Open Stefan2015-5 opened 2 years ago
There seems to be changes in the returned csv files as well. A few changes I've noticed: a) columns have been concatenated to include both short-had code value and name value, b) some columns names have changed (e.g. "Unit measure" -> "Unit of measure"), c) dataset "Consumer prices" is a weird mix of long and wide formats: column "Frequency" distinguishes between monthly/yearly values, but instead of having the values in long format as well, there are both monthly and yearly value columns back-to-back! I can't even begin to understand why one would do this...
The problem of data frames coming back empty results from there being (apparently new) columns (such as "Breaks", "Coverage") which contain missing values only (concerns only certain datasets). Now since read_bis()
will return rows with full observations only, every row gets dropped. I solved the problem in my fork by simply passing na.drop = FALSE
into read_bis_wide()
and read_bis_long()
, see here.
There seems to be a mess-up with the new data structure at BIS. They note that
see their homepage
The code (package version 0.2.1) produces now an empty df: