converting code into R

Job ID: 33361554

Budget: $30 – $250 USD

I have Payton code , need to convert it into R (put more comments to understand the code), and doing analytical report for results .