Skip to content

Implementation in R

Rahul Mondal edited this page Feb 25, 2021 · 16 revisions

Implementation of R Scripts

Running R scripts are pretty easy. Kindly follow these steps to download required softwares and then your desired R script file and associated data file to run the scripts.

Steps for Implementation

1. Install R and RStudio

2. After you have set up your RStudio, you can get R scripts from the following links (shown below the picture). They are arranged in 3 folders in our Github Repo.

After going into your desired folder, please select the associated data file in 'CSV' format. Copy the contents of the file in a notepad on your PC and save as a .csv file.

Saving csv file

(To save as a .csv file, just add a .csv at the end of your file name)

3. Right-click on the file to save the link as a .R file
If there is a failure in Step 3, perform Step 4 & 5, otherwise, proceed to Step 6

4. Open a new script in RStudio

Opening R script

5. From the R script that we have provided, copy the whole code and paste it into the new R script that you have created.

6. Select the whole code (Ctrl\strg + A), and click the "Source" button (top-right corner)

Clone this wiki locally