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

Handle situation with 0 rows #19

Closed
elong0527 opened this issue Jun 1, 2023 · 0 comments
Closed

Handle situation with 0 rows #19

elong0527 opened this issue Jun 1, 2023 · 0 comments
Assignees

Comments

@elong0527
Copy link
Collaborator

Seems we have bug when a PARAM has 0 rows after we adding more parameters using change in #18

Example code

meta <- meta_boxly(
  boxly_adsl,
  boxly_adlb,
  population_term = "apat",
  observation_term = "wk12",
  observation_subset = ANL01FL == "Y" & AVISITN <= 12 & !is.na(CHG)
  )

outdata <- prepare_boxly(meta,
  population = "apat",
  observation = "wk12",
  parameter = meta$plan$parameter,
  analysis = "boxly"
)

Message

Warning: In observation level data, the facet variable 'PARAM' is automatically transformed into a factor!
Warning: In observation level data, the group variable 'AVISITN' is automatically transformed into a factor!
Error in `$<-.data.frame`(`*tmp*`, outlier, value = NA) : 
  replacement has 1 row, data has 0
@fukuhiro2023 fukuhiro2023 linked a pull request Sep 21, 2023 that will close this issue
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.

3 participants