Skip to content

user!2019 Tutorial: Keeping an exotic pet in your home! Taming Python to live in RStudio because sometimes the best language is both!

Latest
Compare
Choose a tag to compare
@3mmaRand 3mmaRand released this 12 Jul 17:42
· 1 commit to master since this release
f8aa9b8

Abstract: Two of the most popular programming languages for doing data science are Python and R and many data scientists use both. However, if you came to programming through an academic route then you may have learnt R as your first and only language. R is a domain-specific language designed for doing statistical analyses and data visualisation whilst Python is general-purpose language. If you are an R enthusiast with a good solution for an analysis problem but it's written in python or you collaborate Python users you can now radically streamline your workflow by using RStudio 1.2 and reticulate. The reticulate package (developed by JJ Allaire, Kevin Ushey, RStudio and Yuan Tang) provides complete interoperability between Python and R. In this tutorial we will cover how to import and use python modules in R, embed a Python session into an R session and seamlessly access the objects arising.
Target audience: This tutorial is aimed at beginner to intermediate R users with or without experience of Python who are interested in learning how to run python code from RStudio.