We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
analyze_vars_in_cols
library(tern) adpp <- tern_ex_adpp %>% h_pkparam_sort() lyt <- basic_table() %>% split_rows_by(var = "STRATA1", label_pos = "topleft") %>% split_rows_by( var = "SEX", label_pos = "topleft", child_label = "hidden" ) %>% # split_cols_by("STRATA1") %>% analyze_vars_in_cols( vars = "ARM", .stats = c("n", "count_fraction"), .labels = c("count_fraction" = "argh") ) # error before now is more informative testthat::expect_error( result <- build_table(lyt = lyt, df = adpp), "The analyzed column produced more than one category of results." ) lyt <- basic_table() %>% split_rows_by(var = "STRATA1", label_pos = "topleft") %>% split_rows_by( var = "SEX", label_pos = "topleft", child_label = "hidden" ) %>% split_cols_by("ARM") %>% analyze_vars_in_cols( vars = "counter", .stats = c("count_fraction"), .labels = c("count_fraction" = " ") ) # error before -> unlist testthat::expect_snapshot(build_table( lyt = lyt, df = adpp %>% mutate(counter = factor("n")) ))
The text was updated successfully, but these errors were encountered:
hi @Melkiades , can you provide an example here please. thanks
Sorry, something went wrong.
Ugly fix for categorical data (#1014)
e8f3d06
FIxes #1013 but it may be not the best way. Last test show an alternative way that is much simpler.
Melkiades
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: