Starting with Google Colab
Go to Google Colab https://colab.research.google.com. You may have to sign-in using your DLSU account.
Create a new notebook. You will see a screen like this (mine is in dark mode).
- Click on the inverted triangle.
- Select “Change runtime type” and you will see the following screen. Default is Python 3 (in red). Change to R. You’re done with setup.
Click on Connect afterwards so that you can run R on the cloud.
If you want to do the analysis in the first set of slides, you should connect to the cloud and then upload the data files to the cloud. Click on the file folder icon (in yellow) and then click on the upload icon (in red). Upload the data files.
- NOTE: You should never do this with data that is not publicly available.
When you place your cursor over the name of the data file
sia_ceo_comp.csv, you will be able to click on the three dots. Once you click the three dots, you will see “Copy path”. Modify theread.csv()command to load the file from the copied path.Type in the command in a code cell and then run the command by using Ctrl+Enter or clicking the Play icon to the left of the code cell.