Skip to content

Bug: Powerpoint n summary incorrect #906

@js3110

Description

@js3110

Description

The N in the powerpoint group slide should represent the number of subjects in the data, but instead it currently represents the number of rows per group.

To reproduce

Run NCA, export powerpoint and view N

Expected behaviour

Fix:
inst/shiny/functions/save_output.R line 150 should become:

    info_i <- merge(o_nca$data$conc$data, group_i) %>%
      # Group by cols from info vars that are in the data
      group_by(across(any_of(info_vars))) %>%
      summarise(n = n_distinct(!!sym(subj_col)), .groups = "drop")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions