inst/doc/mtb_bill_summary.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(mtb)

## ----example_1----------------------------------------------------------------
library(mtb)
head(exdt[[1]])

## ----example_2----------------------------------------------------------------

head(bill_cross_count(exdt[1:6], id='name', gp=c('category1'), type = 'count' ) )


## ----example_3----------------------------------------------------------------

head(bill_cross_count(exdt[1:6], id='name', gp=c('category1'), type = 'cond', condstr='store==2' ) )


## ----example_4----------------------------------------------------------------

head(bill_cross_count(exdt[1:6], id='name', gp=c('category1'), type = 'condwt', condstr='store==1' ) )


## ----example_5----------------------------------------------------------------

head(bill_cross_check(exdt[[1]], exdt[[2]], id=c('category1', 'name','store') ) )

Try the mtb package in your browser

Any scripts or data that you put into this service are public.

mtb documentation built on Oct. 21, 2022, 1:05 a.m.