0% found this document useful (0 votes)
21 views2 pages

R Instruction Sheet English

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

R Instruction Sheet English

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Instruction Sheet for R

(Statistical Tool)
Spoken Tutorial Team
IIT Bombay
1 Online / Offline content 3. Click on "Submit" button.

1. The online content of Spoken Tutorials can be ac- 4. You will see a list of tutorials based on your selec-
cessed from : tion.
https://spoken-tutorial.org/tutorial-search/ 5. Start with the first tutorial in the displayed list.
2. You can also download the Spoken Tutorials for
offline learning from :
https://spoken-tutorial.org/cdcontent/ 5 General instructions for R
3. From this link download the FOSS categories in 1. To open a new R script, press Ctrl + Shift + N
the language you wish to learn. keys together.
4. The Spoken Tutorial content will be downloaded
2. To type the assignment operator (<-), press
as a zip file on your machine.
Alt + - keys together.
5. Extract the contents of the zip file & access them.
3. To type the pipe operator (%>%), press
Ctrl + Shift + M keys together.
2 The procedure to practise 4. To run a block of code, select the block of code
1. You have been given a set of spoken tutorials and and click on Run (in the Source window). Alter-
files. natively, select the block of code and press
Ctrl + Enter keys together.
2. You will typically do one tutorial at a time.
5. To run an entire script, click on Source (in the
3. You may listen to a spoken tutorial and reproduce
Source window). If it does not display the re-
all the steps shown in the video.
sults, from the drop-down menu of Source, click
4. If you find it difficult to do the above, you may on Source with Echo. Alternatively, click any-
consider listening to the whole tutorial once and where in the script and press
then practise during the second hearing. Ctrl + Shift + Enter keys together.
6. Depending upon the version of RStudio installed
3 Side-by-Side learning video (only on your machine, you might have a different inter-
for offline content) face than that shown in the tutorials.
7. For the sake of convenience, four packages plyr,
1. Go to the folder named spoken on your machine. MASS, ggplot2 and dplyr have already been in-
2. Locate index.html file. stalled (during the installation of RStudio). How-
3. Open this file with either Firefox or Chrome web ever some of the tutorials show the installation of
browser. these packages again. Please skip those steps and
move further.
4. The Side-by-Side learning video will appear. This
video will explain how to learn from the spoken
tutorials. 6 First tutorial: Overview of R and
5. Click on the Play button to play the video. RStudio
6. Note all the steps explained therein.
1. Locate the topic Overview of R and RStudio
and click on it.
4 R
2. This tutorial explains the features of R along with
1. Click on "Select FOSS Category" drop-down RStudio and provides an overview of this tutorial
and choose "R". series.
2. Click on "Select Language" drop-down and 3. To view the tutorial, click on the Play icon, which
choose the language (English). is located in the player.
7 Second Tutorial: Installing R and Untitled1, click in the Console window and press
RStudio on Linux Ctrl + Shift + N keys together.
2. At 9:56, the video asks to hit Return. Please hit
1. If you are using Linux, locate the tuto- Enter if you are using a computer other than Mac.
rial Installing R and RStudio on Linux and
watch it.
11 Fifth Tutorial: Introduction to
2. If R and RStudio are already installed, please skip
this tutorial. Data Frames in R
1. For Windows operating system, the file
8 Third Tutorial: Installing R and NewCaptaincy.csv will be saved in the Documents
RStudio on Windows folder. To view this file, open it with Notepad or
any other compatible text editor.
1. If you are using Windows, locate the tutorial 2. For Linux operating system, the file
Installing R and RStudio on Windows and NewCaptaincy.csv will be saved in the home di-
watch it. rectory. To view this file, open it with gedit or
2. If R and RStudio are already installed, please skip any other compatible text editor.
this tutorial. 3. At 9:37, the video shows to click From Text File.
If you are using a higher version of RStudio, click
9 Common Instructions on From Text (base).

1. To view the tutorial, click on the Play icon which


is located in the player.
12 Twelfth Tutorial: Merging and
2. The Pre-requisite will be visible below the
Importing Data
player (only for Online contents). 1. This tutorial requires installation of some packages
3. Outline, Assignments and Code Files are avail- like libxml2-dev, XML, readxl and Rcpp. Please
able below the player. skip this tutorial, in case you are not con-
4. Adjust the size of the browser in such a way that nected to the Internet.
you are able to practise in parallel. 2. At 9:05, the video asks to install libxml2-dev be-
5. Instructions to use Code files in any tutorial: (a) fore installing XML package on Ubuntu OS. To in-
Click on the link Code files located below the stall this package, Ubuntu OS user should follow
player and save it in your folder. the steps given below:
(b) Extract the downloaded zip file. Step 1: Open the terminal by pressing
(c) You will see all the code/source files used in Ctrl + Alt + T keys together.
the particular tutorial. Step 2: Type the command
(d) Use these files as per the instructions given in sudo apt-get update and press enter.
the particular tutorial. Step 3: If prompted for the password, type your
password and press enter.
6. Play-pause-practise the whole tutorial.
Step 4: Type the command
7. Attempt the Assignments as instructed. sudo apt-get install libxml2-dev and press
8. Save your work in your folder. enter.
9. Once the tutorial is complete, choose the next tu- Resume the tutorial once the packages are in-
torial from the playlist which is located on the stalled.
right side or below the player. ? Please note, for Windows OS, this package is not
needed.
10. Follow all the above instructions, till you complete
all the tutorials in the series. 3. At 12:00, the video demonstrates how to import
an Excel file from user interface of RStudio. Two
packages; readxl and Rcpp, are required to ex-
10 Fourth Tutorial: Introduction to port Excel files in R. If these packages are not in-
Basics of R stalled and you are trying to import an Excel file,
a pop-up message will appear. Click on “Yes” to
1. At 2:23, you won’t have Untitled1 open if you begin the installation. Resume the tutorial after
are opening RStudio for the first time. To have the package is installed.

You might also like