trx_no: How many transactions?

Description Usage Arguments Value Note Examples

Description

This function gives you to get the number of transactions in a given financial reporting period

Usage

1
trx_no(statement)

Arguments

statement

This is the full MPESA statement table generated by statement_full() function.Please note that this function does not work without the statement.

Value

trx_no(rawfile) returns a numeric value of the number of transactions.

Note

The function doesnt count the mpesa charge cases.

Examples

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()

GeorgeOduor/mpesaR documentation built on April 30, 2020, 12:35 p.m.