<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=R%2FC2%2FOperations-on-Matrices-and-Data-Frames%2FEnglish-timed</id>
		<title>R/C2/Operations-on-Matrices-and-Data-Frames/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=R%2FC2%2FOperations-on-Matrices-and-Data-Frames%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=R/C2/Operations-on-Matrices-and-Data-Frames/English-timed&amp;action=history"/>
		<updated>2026-05-13T06:33:44Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=R/C2/Operations-on-Matrices-and-Data-Frames/English-timed&amp;diff=52505&amp;oldid=prev</id>
		<title>Sakinashaikh at 11:13, 5 June 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=R/C2/Operations-on-Matrices-and-Data-Frames/English-timed&amp;diff=52505&amp;oldid=prev"/>
				<updated>2020-06-05T11:13:20Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:13, 5 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| 00:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;27&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| 00:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;29&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| '''R script '''in''' RStudio'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| '''R script '''in''' RStudio'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sakinashaikh</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=R/C2/Operations-on-Matrices-and-Data-Frames/English-timed&amp;diff=52504&amp;oldid=prev</id>
		<title>Sakinashaikh at 11:12, 5 June 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=R/C2/Operations-on-Matrices-and-Data-Frames/English-timed&amp;diff=52504&amp;oldid=prev"/>
				<updated>2020-06-05T11:12:03Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:12, 5 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 459:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 459:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| 12:20&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| 12:20&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Consider 2 '''vectors''' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;c&lt;/del&gt;(9,10,11,12) and &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;c&lt;/del&gt;(13,14,15,16). &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Consider 2 '''vectors''' (9,10,11,12) and (13,14,15,16). &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 467:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 467:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| 12:35&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| 12:35&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Add another '''vector''' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;c&lt;/del&gt;(17,18,19,20) as a column to the previous '''matrix'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Add another '''vector''' (17,18,19,20) as a column to the previous '''matrix'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sakinashaikh</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=R/C2/Operations-on-Matrices-and-Data-Frames/English-timed&amp;diff=52141&amp;oldid=prev</id>
		<title>Sakinashaikh: Created page with &quot;  {| border =1 |'''Time''' |'''Narration'''  |- || 00:01 || Welcome to the spoken tutorial on '''Operations on Matrices and Data Frames'''.  |-  || 00:08 || In this tutorial,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=R/C2/Operations-on-Matrices-and-Data-Frames/English-timed&amp;diff=52141&amp;oldid=prev"/>
				<updated>2020-05-22T10:16:20Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;  {| border =1 |&amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039; |&amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;  |- || 00:01 || Welcome to the spoken tutorial on &amp;#039;&amp;#039;&amp;#039;Operations on Matrices and Data Frames&amp;#039;&amp;#039;&amp;#039;.  |-  || 00:08 || In this tutorial,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
{| border =1&lt;br /&gt;
|'''Time'''&lt;br /&gt;
|'''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:01&lt;br /&gt;
|| Welcome to the spoken tutorial on '''Operations on Matrices and Data Frames'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:08&lt;br /&gt;
|| In this tutorial, we will learn how to: &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:13&lt;br /&gt;
|| Perform operations on '''matrices''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:16&lt;br /&gt;
|| Add rows or columns to a '''data frame'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:20&lt;br /&gt;
|| To understand this tutorial, you should know&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:24&lt;br /&gt;
|| '''Data frames''' and '''Matrices''' in '''R''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:27&lt;br /&gt;
|| '''R script '''in''' RStudio'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:32&lt;br /&gt;
||How to set working directory in '''RStudio''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:37&lt;br /&gt;
|| If not, please locate the relevant tutorials on '''R''' on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:44&lt;br /&gt;
|| This tutorial is recorded on&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:47&lt;br /&gt;
|| '''Ubuntu Linux''' OS version 16.04&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:53&lt;br /&gt;
|| '''R''' version 3.4.4&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:58&lt;br /&gt;
|| '''RStudio''' version 1.1.456&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:05&lt;br /&gt;
|| Install''' R''' version 3.2.0 or higher. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:10&lt;br /&gt;
|| For this tutorial, we will use the '''data frame CaptaincyData.csv '''and the '''script '''file '''myMatrix.R'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:21&lt;br /&gt;
|| Please download these files from the '''Code files''' link of this tutorial.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:28&lt;br /&gt;
|| I have downloaded and moved these files to '''MatrixOps '''folder' in '''myProject''' folder on the '''Desktop'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:39&lt;br /&gt;
|| I have also set '''MatrixOps''' folder as my '''Working directory'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:46&lt;br /&gt;
|| Let us switch to '''Rstudio'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:51&lt;br /&gt;
|| Open the '''script myMatrix.R''' in '''RStudio.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:56&lt;br /&gt;
|| For this, click on the '''script myMatrix.R''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:02&lt;br /&gt;
|| '''Script myMatrix.R '''opens in''' Rstudio.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:08&lt;br /&gt;
|| Recall that, we had created a matrix named '''matrixA.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:14&lt;br /&gt;
|| This '''matrix''' was extracted as a subset from the '''captaincy data frame'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:21&lt;br /&gt;
|| We will use '''matrixA''' here also. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:25&lt;br /&gt;
|| Run this '''script myMatrix.R''' to load the values in the '''Workspace'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:32&lt;br /&gt;
|| '''captaincy data frame''' opens in the '''Source''' window. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:37&lt;br /&gt;
|| I will resize the '''Source''' window. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:41&lt;br /&gt;
|| Now let us learn how to find the inverse of '''matrixA'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:48&lt;br /&gt;
|| Click on the''' script myMatrix.R'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:53&lt;br /&gt;
|| In the '''Source''' window, type '''solve, '''within parentheses''' matrixA'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:00&lt;br /&gt;
|| Press '''Enter'''. Press '''Enter''' at the end of every command. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:07&lt;br /&gt;
|| Save the '''script''' and run this line.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:12&lt;br /&gt;
|| The inverse of '''matrixA''' in shown in the '''Console '''window. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:18&lt;br /&gt;
|| For more information on calculating inverse of a '''matrix''' in '''R''', please refer to the '''Additional materials''' section on this website.&lt;br /&gt;
|- &lt;br /&gt;
|| 03:29&lt;br /&gt;
|| Now let us calculate the sum of all the '''elements''' in '''matrixA'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:36&lt;br /&gt;
|| First, we shall use '''nested for loops''' for calculating this sum. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:43&lt;br /&gt;
|| Also, we shall estimate the time taken to calculate the sum in this way.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:50&lt;br /&gt;
|| Let us add a '''comment - Calculating sum using for loop '''in the '''script'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:57&lt;br /&gt;
|| In the '''Source''' window, type '''# hash''' space '''Calculating sum using for loop'''. &lt;br /&gt;
 &lt;br /&gt;
|- &lt;br /&gt;
|| 04:05&lt;br /&gt;
|| Press '''Enter'''. To calculate the time taken, we record the present time. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:12&lt;br /&gt;
|| In the '''Source''' window, type '''start Time''' with capital T.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:18&lt;br /&gt;
|| Then press '''Alt '''and '''-'''('''hyphen''') keys simultaneously. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:23&lt;br /&gt;
|| Next, type''' Sys''' dot '''time''' followed by '''parentheses'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 04:30&lt;br /&gt;
|| '''Sys.time()''' is used to find the absolute date-time value in the current time. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 04:38&lt;br /&gt;
|| Let us initialise a '''variable totalSum'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:43&lt;br /&gt;
|| In the '''Source''' window, type '''totalSum''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:47&lt;br /&gt;
|| then press '''Alt '''and''' -'''('''hyphen''') keys simultaneously. Then type zero. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:55&lt;br /&gt;
|| This '''variable''' will store the sum of '''elements''' in '''matrixA'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:01&lt;br /&gt;
|| Now, we will create two '''for loops''' to iterate through the rows and columns of the '''matrixA'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:10&lt;br /&gt;
|| In the '''Source''' window, type '''for '''in parentheses''' i''' space '''in''' space 1 '''colon '''3 space&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:21&lt;br /&gt;
|| Now type opening curly bracket. '''RStudio''' automatically adds a closing curly bracket.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:30&lt;br /&gt;
|| Press '''Enter''' just after the opening curly bracket and type the following '''command'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:39&lt;br /&gt;
|| Press '''Enter''' after the closing curly bracket of outer '''loop for(i in 1:3)'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:48&lt;br /&gt;
|| In the '''Source''' window, type '''print totalSum''' in''' parentheses'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:54&lt;br /&gt;
|| Now, we record the current time again. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:59&lt;br /&gt;
|| Type '''endTime '''then press '''Alt '''and '''-'''('''hyphen''') keys simultaneously. Type '''Sys''' dot '''time''' parentheses. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:10&lt;br /&gt;
|| Press '''Enter'''. Type '''endTime '''space minus sign space''' startTime''' to know the total time taken.&lt;br /&gt;
And save the '''script'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:23&lt;br /&gt;
|| I am resizing the '''Source '''window.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:27&lt;br /&gt;
|| Run the block of code from the '''comment line Calculating sum using for loop '''to the end. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:35&lt;br /&gt;
|| The '''totalSum''' is evaluated to be 237.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:41&lt;br /&gt;
|| The time taken to calculate the sum of '''elements''' in '''matrixA''' using '''for loop''' is approximately 8 milliseconds. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:51&lt;br /&gt;
|| However, it may vary from system to system. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:56&lt;br /&gt;
|| Now, let us calculate the sum of all '''elements''' in '''matrixA''' using the '''sum function'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:05&lt;br /&gt;
|| We shall estimate the time taken to calculate the sum in this way also. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:12&lt;br /&gt;
|| In the script '''myMatrix.R''', add a '''comment Calculating sum using inbuilt function'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:21&lt;br /&gt;
|| In the '''Source''' window, type '''# hash''' space '''Calculating sum using inbuilt function'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:30&lt;br /&gt;
|| Now, type the following '''commands'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:35&lt;br /&gt;
|| Save the '''script''' and run the block of code from the '''comment line Calculating sum using inbuilt function '''to the end. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:46&lt;br /&gt;
|| The time taken to calculate the sum of '''elements''' using '''sum function''' is 1.6 milliseconds. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:56&lt;br /&gt;
|| Whereas, it took 8 milliseconds to calculate the same sum using '''for loop'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:04&lt;br /&gt;
|| So, it is advisable to use '''inbuilt functions''' of '''R'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:10&lt;br /&gt;
|| Let us learn how to calculate sum of each '''row''' and sum of each '''column'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:18&lt;br /&gt;
|| In the '''Source''' window, type '''rowSums matrixA '''in parentheses.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:26&lt;br /&gt;
|| Next, type''' colSums matrixA '''in parentheses.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:32&lt;br /&gt;
|| Save the '''script''' and run these two lines to see the corresponding sums on the '''Console'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:40&lt;br /&gt;
|| I am resizing the '''Console '''window to see the output properly. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:47&lt;br /&gt;
|| Now let us learn how to add rows and columns to an existing '''data frame'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:55&lt;br /&gt;
|| Click on the '''captaincy data frame'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:59&lt;br /&gt;
|| Let us add a new row to the '''captaincy data frame.''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:04&lt;br /&gt;
|| Click on the''' script myMatrix.R'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:09&lt;br /&gt;
|| In the '''Source''' window, type the following '''command'''. Press '''Enter '''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:24&lt;br /&gt;
|| Press '''Enter '''after the comma for better visibility. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:30&lt;br /&gt;
|| I am resizing the '''Source '''window&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:34&lt;br /&gt;
|| We have used '''rbind() function''' with the following '''arguments'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:40&lt;br /&gt;
|| name of the '''data frame''' to which we want to add the new row. Here, it is '''captaincy'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:48&lt;br /&gt;
|| the row to be added as an '''argument''' to '''data.frame()'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:54&lt;br /&gt;
|| To '''data.frame() function''', we provide the values according to the columns of the actual '''data frame'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:03&lt;br /&gt;
|| '''names''' = “Kohli”&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:06&lt;br /&gt;
|| '''Y''' = 2016&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:10&lt;br /&gt;
|| '''played''' = 30 &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:13&lt;br /&gt;
|| '''won''' = 20&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:17&lt;br /&gt;
|| '''lost''' = 9&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:20&lt;br /&gt;
|| '''victory''' = 20/30&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 10:24&lt;br /&gt;
|| In the '''Source''' window, type '''View '''within''' parentheses captaincy''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:30&lt;br /&gt;
|| Save the '''script''' and run the last two lines of code. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:37&lt;br /&gt;
|| One new row with the details of '''Kohli''' is added in the '''captaincy data frame'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 10:44&lt;br /&gt;
|| Now let us create a new column named '''defeat''' in the '''captaincy data frame'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:52&lt;br /&gt;
|| Click on the '''script myMatrix.R'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:57&lt;br /&gt;
|| In the '''Source''' window, type the following '''command'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 11:03&lt;br /&gt;
|| Press '''Enter'''. Now we add '''defeat''' as a new column in '''captaincy data frame'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:11&lt;br /&gt;
|| In the '''Source''' window, type the following '''command''' Press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 11:17&lt;br /&gt;
|| We have used '''cbind() function''' with following two '''arguments''':&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:23&lt;br /&gt;
|| name of the '''data frame''' to which we want to add the new column. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:28&lt;br /&gt;
|| Here, it is '''captaincy'''.  name of the column to be added. Here, it is '''defeat'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 11:37&lt;br /&gt;
|| Now type '''View, captaincy '''in''' parentheses '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:42&lt;br /&gt;
|| Save the '''script''' and run the block of code starting from the declaration of '''defeat '''to the end.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:52&lt;br /&gt;
|| '''defeat''' column is added in the '''captaincy data frame'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 11:58&lt;br /&gt;
|| Let us summarize what we have learnt.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 12:04&lt;br /&gt;
|| In this tutorial, we have learned how to:&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:07&lt;br /&gt;
||  Perform operation on '''matrices''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:11&lt;br /&gt;
|| Add rows or columns to a '''data frame'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 12:16&lt;br /&gt;
|| We now suggest an assignment.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:20&lt;br /&gt;
|| Consider 2 '''vectors''' c(9,10,11,12) and c(13,14,15,16). &lt;br /&gt;
 &lt;br /&gt;
|-&lt;br /&gt;
|| 12:30&lt;br /&gt;
|| Create a 4 by 2 '''matrix''' from these two '''vectors'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:35&lt;br /&gt;
|| Add another '''vector''' c(17,18,19,20) as a column to the previous '''matrix'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:45&lt;br /&gt;
|| For solutions, please refer to the '''Additional materials''' section on this website.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 12:52&lt;br /&gt;
|| The video at the following link summarises the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:58&lt;br /&gt;
|| Please download and watch it.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:01&lt;br /&gt;
|| We conduct workshops using Spoken Tutorials and give certificates. Please contact us.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:11&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:16&lt;br /&gt;
|| Please post your general queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:21&lt;br /&gt;
|| The '''FOSSEE '''team coordinates the '''TBC '''project. For more details, please visit these sites.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:30&lt;br /&gt;
|| The Spoken Tutorial project is funded by NMEICT, MHRD, Govt. of India&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 13:37&lt;br /&gt;
|| The script for this tutorial was contributed by Shaik Sameer (FOSSEE Fellow 2018).&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 13:46&lt;br /&gt;
|| This is Sudhakar Kumar from IIT Bombay signing off. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 13:51&lt;br /&gt;
|| Thanks for watching.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Sakinashaikh</name></author>	</entry>

	</feed>