Using R Programming In Jupyter Notebook & Google Colab

in STEMGeeks6 years ago

Hi there. This is a short post on how to implement the R statistical programming language into Jupyter Notebook and Google Colab. Both Jupyter and Google Colab are mainly for Python users but with some adjustments you can use R for these two.

R_image.jpg

 

R In Jupyter Notebook


This tutorial link from the Anaconda website gives a quick tutorial on how to add R along with Python 3.7.

In Environments, go to Create. Next, name the environment as r-tutorial. In the Packages section, select Python 3.7 and R.

When you create a new notebook in Jupyter Notebook (r-tutorial), you can create a new R notebook.

R In Google Colab


This link contains useful information on how to use R in Google Colab. The main link is here for creating a new Google Colab notebook with R.

This screenshot image is a sample of what can be done in R with Google Colab. (It is assumed that the ggplot2library is loaded in.)

Rggplot_colab.png


Thank you for reading.