CAMS provides a service to get a pdf statement with all the mutual transactions within a specified period, from most of the fund houses. I needed a way to extract the data from the pdf, and so I wrote this script to do just that.
- Install R. Follow the instructions present here.
- Install RSudio. This is not necessary, but good to have. You can download it here.
- Install the required packages either by opening R or RStudio
- Install magrittr by running this command
install.packages('magrittr')
- Install dplyr by running this command
install.packages('dplyr')
- Install stringr by running this command
install.packages('stringr')
- Install tabulizer by running this command first
install.packages('ghit')
. After this, run this command if you are on windowsghit::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch")
, or this command otherwiseghit::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"))
. Java needs to be present in the system for this package.
- Install magrittr by running this command
- Download the
script.R
andstandalone-functions.R
files - Edit the
<filename>
and<password>
parameters in thescript.R
file - Run the
script.R
file - The output csv files will be present in the same directory as script files