Closed J535D165 closed 7 years ago
You are correct: these are the column names I receive from the CBS. The human readable names of the columns are in meta$DataProperties
the recode argument currently recodes category codes into category names. It is on my TODO list that recode also returns "human readable" column names. Note however that these label can be looooonggg.
Hello Edwin, thanks for your updates on this point. I like the use_column_title
argument. Dropping the numbers after the underscore may be a solution as well. I haven't found a situation with duplicate column names when dropping the numbers. I'm not sure what happens when there are duplicate column names.
A few weeks ago, I made a CBS open data client for Python inspired on this project. Linking back to your R version. https://github.com/J535D165/cbsodata
Hi Jonathan,
Thanks for your suggestions! Regarding dropping the numbers: most of the times this is not a problem, however:
I noticed (by accident) your python implementation. I was looking at "rijksdriehoek" of Jan van der Laan (who is a close colleague), and noticed your python implementation and there upon your python implementation of cbsodata :-) . I will add a link to README to reference your python version.
Best regards,
Edwin
Clear answer. I'm a bit afraid that the numbers will change over the time (different column order?). But it's good to leave it to the end user. And the use_column_title
is enough for most users.
In my opinion, the issue can be closed.
Why is there a number behind the colnames? Is this how you receive the data from CBS?
I am not so sure what the
recode
argument does, but is doesn't change anything.