Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

A lot of if-else in `format_ae_listing()`

Open
#148 1 comment 0 reactions 1 assignee View on GitHub

@fukuhiro2023 is already working on this.

Since Sep 16, 2026.

Assessment

This issue has not been assessed yet.

Description

We have a lot of if statements in the format_ae_listing() function handling various tasks (see https://github.com/Merck/forestly/blob/main/R/ae_listing.R#L336-L508), including simple ones like converting to title case or relabeling columns. It also includes some calculations, as seen in lines 465-506.

I am wondering if these if-else statements are redundant, considering:

  • Variable names might differ from one study to another.
  • They may slow down execution time.
  • Should we just display exactly what is already in the dataset?
Dominant language
R
Stars
22
Forks
6
Avg merge
1d 14h
Merged PRs (30d)
10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Merck/forestly

All issues in Merck/forestly

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.