Most bank data is readily available for download, but some credit card companies only offer a monthly PDF file with transactions. R makes it easy to pull out the data.
Created
March 2, 2022 16:12
-
-
Save smithjd/5fec0629f26a362c8895583daae7edb4 to your computer and use it in GitHub Desktop.
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here are the libraries I use:
This function retrieves all the data from one month and returns a decent data frame. Visual inspection shows that the first 3 pages of the PDF can be skipped.
Provide a list of PDF files downloaded from the credit card company:
pdf_list <- c("20210115-statements-6488-.pdf", "20210215-statements-6488-.pdf", ...)Then process all the files with a call as follows:
Then upload to a Google Sheet or wherever you want to inspect and process your data.