I am an italian student of economics and finance. I have an updated full node. I would like to obtain statistic data from the blockchain.

My intent is to be able to answer all possible questions (for example average number of transaction per second, btc spent per second, transaction fees per kb etc) without using a website like statoshi.info.

Are there any R (or eventually python) packages useful to access blockchain data to run a statistical analysis?

thank you in advance

I believe that you already have searched in

https://cran.r-project.org/web/packages/ but you did not find anything. I know that there are python packages available where you can use it for statistics and one of them is called scipy but this package have specialization in probability distributions. If you need only basic statistics there is embedded in python language

https://docs.python.org/3/library/statistics.html. Moreover a free pdf book for econometrics with python is

https://www.kevinsheppard.com/images/0/09/Python_introduction.pdf.