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

[Feature Request]: return layout expression from qtable #711

Open
3 tasks done
anajens opened this issue Aug 11, 2023 · 0 comments
Open
3 tasks done

[Feature Request]: return layout expression from qtable #711

anajens opened this issue Aug 11, 2023 · 0 comments

Comments

@anajens
Copy link
Contributor

anajens commented Aug 11, 2023

Feature description

If qtable can return the expression of the layout (lyt below), new users will be able to see the connection from qtable to the rtables layout framework. This would be a very nice teaching tool. For example:

t1 <- qtable(ex_adsl, col_vars = "ARM", avar = "AGE", afun = mean)

lyt <- basic_table(show_colcounts = TRUE) %>%
  split_cols_by("ARM") %>%
  analyze("AGE", afun = function(x) {
    rcell(mean(x), format = "xx.xx", label = "AGE - mean")
  })

t2 <- build_table(lyt, ex_adsl)

identical(t1, t2)

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant