Skip to content

157 new function label extracter#160

Open
SanderDevisscher wants to merge 17 commits into
mainfrom
157-new-function-label_extracter
Open

157 new function label extracter#160
SanderDevisscher wants to merge 17 commits into
mainfrom
157-new-function-label_extracter

Conversation

@SanderDevisscher

Copy link
Copy Markdown
Collaborator

This pull request introduces a new utility function for extracting columns from the DMOGG dataset based on labels, improves documentation, and makes minor enhancements to dependencies and internal data loading. The most significant change is the addition of the label_extracter function, which provides flexible options for selecting columns and optionally joining presence information for labels.

New feature: Data extraction utility

  • Added a new function label_extracter that allows users to extract specific columns from the DMOGG dataset based on provided labels. The function supports multiple modes for column selection ("all", "select", "list", "group"), can join presence information, and is fully documented with usage examples. [1] [2] [3]

Documentation improvements

  • Added Roxygen2-generated documentation for label_extracter, including parameter descriptions, details, and usage examples.
  • Fixed a minor typo in the documentation for label_selecter regarding the label_type parameter. [1] [2]

Dependency and internal loading updates

  • Added purrr to the Suggests field in the DESCRIPTION file to support new functionality in label_extracter.
  • Updated label_selecter to use the read_dmogg() function for loading the georeferenced DMOGG dataset, ensuring consistency and maintainability.

@SanderDevisscher SanderDevisscher self-assigned this Apr 28, 2026
@SanderDevisscher SanderDevisscher added Function Issue related to a function New Nieuwe functie/data labels Apr 28, 2026
@SanderDevisscher SanderDevisscher linked an issue Apr 28, 2026 that may be closed by this pull request
18 tasks

@martijn-bollen martijn-bollen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For both examples 1 and 3, I receive an error related to the column: 'label_nummer_samen'. For the specific error messages read below.

Note: in example 3, I recieve the exact same error when removing 'label_nummer_samen' from the vector specified in the column_list argument (i.e. c("onderkaaklengte_comp", "geslacht_comp") instead of c("label_nummer", "onderkaaklengte_comp", "geslacht_comp"))

Comment thread R/label_extracter.R
Comment thread R/label_extracter.R
@SanderDevisscher SanderDevisscher dismissed martijn-bollen’s stale review May 20, 2026 07:06

All these issues should be fixed by adding the missing package declarations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Function Issue related to a function New Nieuwe functie/data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NEW function] label_extracter

2 participants