dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
512 stars 77 forks source link

[Feature request]: Enable formula interface for ctable() #88

Closed pavyzdys closed 1 year ago

pavyzdys commented 5 years ago

Please, enable formula interface for ctable() to enable syntax like this:

tobacco %>% ctable(diseased ~ smoker)
# or 
ctable(diseased ~ smoker, data = tobacco)

instead of:

with(tobacco, ctable(smoker, diseased))