statement_period: What is the transaction period?

Description Usage Arguments Value Examples

Description

Gives you the transaction period from the start of the statement?.

Usage

1

Arguments

rawfile

MPESA pdf file formated by mpesa_file() function

Value

statement_period(rawfile) returns period difference

Examples

1
2
3
4
5
6
7
library(mpesaR)
statement <- statement_full(rawfile)
statement_period(statement)
#using the pipe ( %>% ) operator
mpesa_file("path/to/MPESAfile.pdf","MYSECRETPASWWORD") %>%
statement_full() %>%
statement_period()

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