# NOT RUN {
data(mtcars)
# dt_count
dt_count(mtcars, am, vs)
dt_add_count(mtcars, am, vs, name = "am_vs")[] # [] for autoprinting
# dt_top_n
dt_top_n(mtcars, 2, by = list(am, vs))
dt_top_n(mtcars, 2, order_by = mpg, by = list(am, vs))
# }
Run the code above in your browser using DataLab