Skip to content
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

create a dm_explicit_na for preprocessing. #121

Closed
BFalquet opened this issue Jan 26, 2022 · 0 comments · Fixed by #122
Closed

create a dm_explicit_na for preprocessing. #121

BFalquet opened this issue Jan 26, 2022 · 0 comments · Fixed by #122
Assignees

Comments

@BFalquet
Copy link
Contributor

BFalquet commented Jan 26, 2022

Create a function that converts all character (but also logical and factor) columns of a dm object into factor with explicit NA levels, for instance <Missing>. The goal is to speed up data pre-processing instead of attending separately each column that has to be converted to factor with explicit missing values (which is often required by the rtable functions).

Requirements:

  • give the option to exclude some tables
  • give the option to exclude some columns
  • give the option to omit character columns
  • give the option to omit factor columns (by default, logical should not be transformed)
  • give the option to choose the missing level representation (by default <Missing>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant