<?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%2FCreating-Matrices-using-Data-Frames%2FEnglish-timed</id>
		<title>R/C2/Creating-Matrices-using-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%2FCreating-Matrices-using-Data-Frames%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=R/C2/Creating-Matrices-using-Data-Frames/English-timed&amp;action=history"/>
		<updated>2026-05-13T06:31:41Z</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/Creating-Matrices-using-Data-Frames/English-timed&amp;diff=52501&amp;oldid=prev</id>
		<title>Sakinashaikh at 10:59, 5 June 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=R/C2/Creating-Matrices-using-Data-Frames/English-timed&amp;diff=52501&amp;oldid=prev"/>
				<updated>2020-06-05T10:59:44Z</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 10:59, 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 383:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 383:&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;|| 09:31&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;|| 09:31&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;/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/Creating-Matrices-using-Data-Frames/English-timed&amp;diff=52500&amp;oldid=prev</id>
		<title>Sakinashaikh at 10:57, 5 June 2020</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=R/C2/Creating-Matrices-using-Data-Frames/English-timed&amp;diff=52500&amp;oldid=prev"/>
				<updated>2020-06-05T10:57:54Z</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 10:57, 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 149:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 149:&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;|| 03:28&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;|| 03:28&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;|| In the '''Source '''window, type the following command Press '''Enter'''.&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;|| In the '''Source '''window, type the following command&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. &lt;/ins&gt;Press '''Enter'''.&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 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;|| 03: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;|| 03:35&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 192:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 192:&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;|| 04:34&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;|| 04:34&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;|| Now type '''as'''dot '''matrix''', within parentheses type '''subdata''' and press '''Enter'''. &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;|| Now type '''as''' dot '''matrix''', within parentheses type '''subdata''' and press '''Enter'''. &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;/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/Creating-Matrices-using-Data-Frames/English-timed&amp;diff=52140&amp;oldid=prev</id>
		<title>Sakinashaikh: Created page with &quot;   {| border =1 |'''Time''' |'''Narration'''  |- || 00:01 || Welcome to the spoken tutorial on '''Creating Matrices using Data Frames.'''  |- || 00:08 || In this tutorial, we...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=R/C2/Creating-Matrices-using-Data-Frames/English-timed&amp;diff=52140&amp;oldid=prev"/>
				<updated>2020-05-22T10:12:28Z</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;Creating Matrices using Data Frames.&amp;#039;&amp;#039;&amp;#039;  |- || 00:08 || In this tutorial, we...&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 '''Creating Matrices using 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:12&lt;br /&gt;
|| Convert a '''data frame''' into a '''matrix'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:16&lt;br /&gt;
|| Create a '''matrix''' in '''R'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:19&lt;br /&gt;
|| Perform basic operations on '''matrices''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:24&lt;br /&gt;
|| To understand this tutorial, you should know,&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:28&lt;br /&gt;
|| '''Data frames''' and '''Vectors''' in '''R'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:32&lt;br /&gt;
|| '''Basics''' of '''Matrices'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:35&lt;br /&gt;
|| '''R script''' in '''RStudio'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:39&lt;br /&gt;
|| How to set '''working directory''' in '''RStudio'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:44&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:51&lt;br /&gt;
|| This tutorial is recorded on&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:54&lt;br /&gt;
|| '''Ubuntu Linux '''OS version''' 16.04'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:01&lt;br /&gt;
|| '''R '''version''' 3.4.4'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:06&lt;br /&gt;
|| '''RStudio''' version''' 1.1.456'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:12&lt;br /&gt;
|| Install '''R''' version '''3.2.0''' or higher. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:19 &lt;br /&gt;
|| For this tutorial, we will use the '''data frame CaptaincyData.csv''' and a '''script '''file '''myMatrix.R'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:30&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:38&lt;br /&gt;
|| I have downloaded and moved these files to '''Matrices''' folder in '''myProject''' folder on the '''Desktop'''. &lt;br /&gt;
|-&lt;br /&gt;
|| 01:48&lt;br /&gt;
|| I have also set '''Matrices''' folder as my '''Working Directory.''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:55&lt;br /&gt;
|| Let us switch to '''RStudio'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:58&lt;br /&gt;
|| Open the '''script myMatrix.R''' in '''RStudio'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:04&lt;br /&gt;
|| For this, click on the '''script myMatrix.R''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:10&lt;br /&gt;
|| '''Script myMatrix.R''' opens in '''RStudio'''.&lt;br /&gt;
|-&lt;br /&gt;
|| 02:16&lt;br /&gt;
|| Here, I have used '''rm function''' to remove all existing variables from memory. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:25&lt;br /&gt;
|| This prevents errors such as use of older data. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:31&lt;br /&gt;
|| Run this '''script''' by clicking on the '''Source '''button. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:36&lt;br /&gt;
|| The captaincy '''data frame''' is displayed in the '''Source''' window. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:42&lt;br /&gt;
|| We need our data in a '''matrix''' form to:&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:45&lt;br /&gt;
|| Calculate the inverse of a '''matrix'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:50&lt;br /&gt;
|| Perform '''matrix''' operations like addition, subtraction, multiplication, etc.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:58&lt;br /&gt;
|| Hence, we need to learn how to convert a '''data frame''' into a '''matrix'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:05&lt;br /&gt;
|| Let us get back to '''RStudio'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:09&lt;br /&gt;
|| We will convert the values in first three rows of '''played''', '''won''' and '''lost''' columns into a '''matrix'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:19&lt;br /&gt;
|| We will create a '''subset''' for extracting these values.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:24&lt;br /&gt;
|| Click on the '''script myMatrix.R'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:28&lt;br /&gt;
|| In the '''Source '''window, type the following command Press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| 03:35&lt;br /&gt;
|| I am resizing the '''Source''' window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:39&lt;br /&gt;
|| Press '''Enter''' to go to the next line. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:43&lt;br /&gt;
|| Press '''Enter''' at the end of every command. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:48&lt;br /&gt;
|| '''1 colon 3''' indicates that the first three rows are to be extracted. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:55&lt;br /&gt;
|| '''c''' is the '''concatenate vector command''' with names of each column within double quotes. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:03 &lt;br /&gt;
|| Save the '''script''' and execute the current line. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:08&lt;br /&gt;
|| The variable '''subData''' appears in the '''Environment''' window. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:14&lt;br /&gt;
|| Click on the arrow before '''subData''' to expand its contents. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:20&lt;br /&gt;
|| Now, we will convert this '''subset''' into a '''matrix'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:25&lt;br /&gt;
|| In the '''Source''' window, type '''matrixA''' then press '''Alt''' and '''hyphen'''(-)keys simultaneously.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:34&lt;br /&gt;
|| Now type '''as'''dot '''matrix''', within parentheses type '''subdata''' and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:46 &lt;br /&gt;
|| '''as.matrix function''' is used to convert the '''subdata '''into a '''matrix'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:53&lt;br /&gt;
|| In '''Source''' window, type '''print''', within '''parentheses''' '''matrixA'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:00 &lt;br /&gt;
|| Save the '''script''' and run these two lines. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:06&lt;br /&gt;
|| The content of '''matrixA''' is shown on the '''Console''' window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:11&lt;br /&gt;
|| Now let us create a 3 by 3 '''identity matrix'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:17&lt;br /&gt;
|| Create a '''vector''' named '''values''' containing the row-wise values of a 3 by 3 identity matrix.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:26&lt;br /&gt;
|| In the '''Source''' window, type the following command and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:33 &lt;br /&gt;
|| Now we will create a variable '''matrixB''' to store the '''matrix''' created using vector values.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:42&lt;br /&gt;
|| In the '''Source''' window, type the following command. Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:49&lt;br /&gt;
|| Press '''Enter''' to go to the next line. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:52&lt;br /&gt;
|| Here, I have used '''matrix function''' with following '''arguments''':&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:58&lt;br /&gt;
|| data of '''values''' vector&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:01&lt;br /&gt;
|| number of rows as '''nrow''' equal to '''3'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:06&lt;br /&gt;
|| number of columns as '''ncol''' equal to ''' 3''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:11&lt;br /&gt;
|| '''byrow '''equal to''' TRUE''' indicates that, data provided has to be arranged row-wise in the '''matrix'''. &lt;br /&gt;
|-&lt;br /&gt;
|| 06:20 &lt;br /&gt;
|| Now, type '''print''' within parentheses type '''matrixB''' to show the contents of the '''matrix'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:27&lt;br /&gt;
|| Save the '''script''' and run the last three lines of code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:34&lt;br /&gt;
|| The '''identity matrix''' is shown on the '''Console''' window. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:39&lt;br /&gt;
|| Now let us perform some arithmetic operations on '''matrices'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:44&lt;br /&gt;
|| I will resize the '''Source''' window. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:48&lt;br /&gt;
|| We will add and subtract '''matrices A''' and '''B'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:53&lt;br /&gt;
|| In the '''Source''' window, type '''matrixA''' space '''plus''' sign space '''matrixB'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:02&lt;br /&gt;
|| Next, type '''matrixA''' space '''minus''' sign space ''' ''matrixB'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:10&lt;br /&gt;
|| Save the '''script''' and run these two lines. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:15&lt;br /&gt;
|| I will resize the '''Console''' window to see the output properly. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:21&lt;br /&gt;
|| The resulting '''matrices''' are shown on the '''Console''' window. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:26&lt;br /&gt;
|| Let us perform multiplication of individual '''elements''' of two '''matrices'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:32&lt;br /&gt;
|| In the '''Source''' window, type '''matrixA''' space '''asterisk''' sign space '''matrixB'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:42&lt;br /&gt;
|| Save the '''script''' and run the current lines. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:47&lt;br /&gt;
|| The resulting '''matrix''' is shown on the '''Console''' window. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:52&lt;br /&gt;
|| Now, we will perform a true '''matrix''' multiplication with these '''matrices'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:59&lt;br /&gt;
|| 1st row of '''matrixA''' is multiplied by 1st column of '''matrixB'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:06&lt;br /&gt;
|| Hence number of columns of '''matrixA''' should be equal to the number of rows of '''matrixB'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:15&lt;br /&gt;
|| In the '''Source''' window, type '''matrixA''' space '''percentage''' sign '''asterisk percentage''' sign  space '''matrixB'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:25&lt;br /&gt;
|| Save the '''script''' and run the current line. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:31&lt;br /&gt;
|| The resulting '''matrix''' is shown on the '''Console''' window. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:36&lt;br /&gt;
|| Now let us calculate the '''transpose''' and '''determinant''' of '''matrixA'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:43&lt;br /&gt;
|| In the '''Source''' window, type '''t''' and '''matrixA''' in parentheses. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:50&lt;br /&gt;
|| Now, type '''det''' and '''matrixA''' in parentheses. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:57&lt;br /&gt;
|| Save the '''script''' and run these two lines. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:02&lt;br /&gt;
|| The corresponding output is shown on the '''Console''' window. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:07&lt;br /&gt;
|| Let us summarize what we have learnt.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:11&lt;br /&gt;
|| In this tutorial, we have learnt how to: &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:15&lt;br /&gt;
|| Convert a '''data frame''' into a '''matrix'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:19&lt;br /&gt;
|| Create a '''matrix''' in '''R'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:22&lt;br /&gt;
|| Perform basic operations on '''matrices'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:27&lt;br /&gt;
|| We now suggest an assignment.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:31&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;
|| 09:42&lt;br /&gt;
|| Create a 4 by 2 '''matrix''' from these two '''vectors'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:47&lt;br /&gt;
|| For solution, please refer to the '''Additional materials''' section on this website. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:55&lt;br /&gt;
|| The video at the following link summarises the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:00&lt;br /&gt;
|| Please download and watch it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:03&lt;br /&gt;
|| We conduct workshops using Spoken Tutorials and give certificates.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:09&lt;br /&gt;
|| Please contact us.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:12&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:17&lt;br /&gt;
|| Please post your general queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:21&lt;br /&gt;
|| The '''FOSSEE ''' team coordinates the '''TBC '''project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:25&lt;br /&gt;
|| For more details, please visit these sites.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:29&lt;br /&gt;
|| The Spoken Tutorial project is funded by NMEICT, MHRD, Govt. of India&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:36&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;
|| 10:45&lt;br /&gt;
|| This is Sudhakar Kumar from IIT Bombay signing off. Thanks for watching.&lt;/div&gt;</summary>
		<author><name>Sakinashaikh</name></author>	</entry>

	</feed>