-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically add total_codes for OGD Data #28
Comments
GregorDeCillia
added a commit
that referenced
this issue
Mar 29, 2022
for open data datasets, the FK-column which can hold information about the id of the parent element is now included in the utput of the $field() method part of #28
STATcubeR now automatically sets the total code if there is exactly one empty entry in the FK column. This issue will be closed as soon as #23 is merged Lines 10 to 16 in fb58c48
|
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The classification files of OGD datasets contain an optional column "FK" (Foreign Key) which can point to the parent element of the clasification element. This allows a definition of hierarchical classifications. Currently, the FK column is ignored by STATcubeR but it could be used to automatically detect "total codes". Example:
Here, there is a singe classification element (Code:
TOTAL
) and all other elements point to that element viaFK
. In cases like this, it is reasonable to regardTOTAL
as the total code for this classification.The text was updated successfully, but these errors were encountered: