Description Usage Arguments Value Note Examples
This function gives you to get the number of transactions in a given financial reporting period
1 | trx_no(statement)
|
statement |
This is the full MPESA statement table generated by statement_full() function.Please note that this function does not work without the statement. |
trx_no(rawfile)
returns a numeric value of the number of transactions.
The function doesnt count the mpesa charge cases.
1 2 3 4 5 6 7 | library(mpesaR)
statement <- statement_full(rawfile)
trx_no(statement)
#using the pipe ( %>% ) operator
mpesa_file("path/to/MPESAfile.pdf","my_national_id") %>%
statement_full() %>%
trx_no()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.