<?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%2FMore-Functions-in-dplyr-Package%2FEnglish-timed</id>
		<title>R/C2/More-Functions-in-dplyr-Package/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%2FMore-Functions-in-dplyr-Package%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=R/C2/More-Functions-in-dplyr-Package/English-timed&amp;action=history"/>
		<updated>2026-05-13T06:33:59Z</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/More-Functions-in-dplyr-Package/English-timed&amp;diff=52150&amp;oldid=prev</id>
		<title>Sakinashaikh: Created page with &quot;  {| border =1 |'''Time''' |'''Narration'''  |- || 00:01 ||Welcome to this tutorial on '''More functions in the dplyr package'''.  |-  || 00:07 ||In this tutorial,we will lear...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=R/C2/More-Functions-in-dplyr-Package/English-timed&amp;diff=52150&amp;oldid=prev"/>
				<updated>2020-05-22T11:04:36Z</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 this tutorial on &amp;#039;&amp;#039;&amp;#039;More functions in the dplyr package&amp;#039;&amp;#039;&amp;#039;.  |-  || 00:07 ||In this tutorial,we will lear...&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 this tutorial on '''More functions in the dplyr package'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:07&lt;br /&gt;
||In this tutorial,we will learn about the following '''functions''' in the '''dplyr package''': &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:14&lt;br /&gt;
||'''select'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:16&lt;br /&gt;
||'''rename'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:18&lt;br /&gt;
||'''mutate'''&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;
||Basics of statistics &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:27&lt;br /&gt;
||Basics of '''ggplot2 package'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:31&lt;br /&gt;
||'''Data frames''' &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:33&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:40&lt;br /&gt;
||This tutorial is recorded on&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:43&lt;br /&gt;
||'''Ubuntu Linux''' OS version '''16.04'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:48&lt;br /&gt;
||'''R''' version '''3.4.4'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:52&lt;br /&gt;
||'''RStudio''' version '''1.1.463'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 00:57&lt;br /&gt;
||Install '''R''' version '''3.2.0''' or higher. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:03&lt;br /&gt;
||For this tutorial, we will use&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:06&lt;br /&gt;
||A '''data frame moviesData.csv'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:11&lt;br /&gt;
||A '''script''' file '''myVis.R'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:16&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:23&lt;br /&gt;
||I have downloaded and moved these files to '''DataVis''' folder. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:29&lt;br /&gt;
||This folder is located in '''myProject''' folder on my '''Desktop'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:36&lt;br /&gt;
||I have also set the '''DataVis''' folder as my '''Working Directory'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:42&lt;br /&gt;
||Let us switch to '''RStudio'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:45&lt;br /&gt;
||Open the '''script myVis.R''' in '''RStudio'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 01:50&lt;br /&gt;
||We have already learnt how to use the '''filter''' and '''arrange functions''' in the '''dplyr package'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:01&lt;br /&gt;
||Run this '''script''' by clicking on the '''Source''' button. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:06 &lt;br /&gt;
||'''movies data frame''' and other filtered '''data frames''' open in the '''Source''' window. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:13&lt;br /&gt;
||We will close all the '''data frames''' except '''movies'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:19&lt;br /&gt;
||In the '''Source''' window, scroll from left to right. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:24&lt;br /&gt;
||This will enable us to see the remaining objects of the '''movies data frame'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:30&lt;br /&gt;
||To select the required variables of a '''data frame ''' we will use the '''select function'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:37&lt;br /&gt;
||It helps us to select only those '''variables''' that are required.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:43 &lt;br /&gt;
||Here, we will use the '''select function''' to select '''title''', '''genre''', and '''imdb rating''' for all the movies. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 02:56 &lt;br /&gt;
||Click on the '''script myVis.R'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:00&lt;br /&gt;
||In the '''Source''' window, type the following '''command'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:05 &lt;br /&gt;
||The first '''argument''' in the '''select function''' is the name of the '''data frame'''.&lt;br /&gt;
Here it is '''movies'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:14&lt;br /&gt;
||Other '''arguments''' are the '''variables''' which we will select for all the movies. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:20&lt;br /&gt;
||Save the '''script''' and '''run''' the last two lines of code by pressing '''Ctrl + Enter''' keys simultaneously. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:31&lt;br /&gt;
||'''moviesTGI''' opens in the '''Source''' window. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:36&lt;br /&gt;
||Here, '''title''', '''genre''', and '''imdb rating''' of all the movies are displayed. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:46 &lt;br /&gt;
||Let us close '''moviesTGI data frame''' for now. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:52 &lt;br /&gt;
||In the '''Source''' window, click on '''movies data frame'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 03:57 &lt;br /&gt;
||Scroll the '''data frame''' from right to left to see other columns. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 04:04 &lt;br /&gt;
||In the '''data frame''', we can see the '''variables''' like '''thtr_rel_day, thtr_rel_month, thtr_rel_year'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:27&lt;br /&gt;
||These '''variables''' provide information about the day, month and year of the theater release of the movies.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 04:38&lt;br /&gt;
||Let us select these three '''variables''' along with the '''title''' of all the movies. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:45&lt;br /&gt;
||Please note that all the theater-related '''variable''' names start with '''t h t r'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 04:53&lt;br /&gt;
||Click on the '''script myVis.R.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 04:57&lt;br /&gt;
||In the '''Source''' window, type the following '''command'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:02&lt;br /&gt;
||Here, we have used '''starts_with function'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:08&lt;br /&gt;
||It selects all the '''variables''' in the movies '''data frame''', whose names start with '''t h t r. '''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:16&lt;br /&gt;
||'''Run''' the last two lines of code.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:20&lt;br /&gt;
||'''moviesTHT '''opens in the '''Source''' window. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:25&lt;br /&gt;
||Movies with their '''titles''' and theater-release information are shown.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:33 &lt;br /&gt;
||Let us close '''moviesTHT data frame''' for now. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:38 &lt;br /&gt;
||In the '''Source''' window, click on '''movies'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:42&lt;br /&gt;
||Let us change the name of the '''variable thtr_rel_year'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:52&lt;br /&gt;
||For that, we will use the '''rename function'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 05:56&lt;br /&gt;
||Click on the '''script myVis.R '''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:00&lt;br /&gt;
||In the '''Source''' window, type the following '''command'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:05 &lt;br /&gt;
||Here, we are changing the name of the '''variable thtr_rel_year'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:14&lt;br /&gt;
||'''Run''' the last two lines of code.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:19&lt;br /&gt;
||'''moviesR '''opens in the '''Source''' window. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:23 &lt;br /&gt;
||In the '''Source''' window, scroll from left to right.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:28 &lt;br /&gt;
||Observe that the name of the '''variable thtr_rel_year '''has changed to '''rel_year'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:41&lt;br /&gt;
||Let us close the '''data frame moviesR''' for now. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:46&lt;br /&gt;
||In the '''Source''' window, click on '''movies'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:50&lt;br /&gt;
||In the '''Source''' window, scroll from left to right. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 06:55 &lt;br /&gt;
||Suppose we want to add a new '''variable''' named '''CriAud''' to our '''movies data frame'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:04&lt;br /&gt;
||This '''variable''' should contain the difference between '''critics_score''' and '''audience_score'''. &lt;br /&gt;
For this, we will use the '''mutate function'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:16&lt;br /&gt;
||'''mutate function''' is used to add a new '''variable''' and preserve the existing one.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:23&lt;br /&gt;
||For simplicity let us remove the '''variables''' appearing after '''audience_score '''in the '''movies data frame'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:33 &lt;br /&gt;
||In the '''Source''' window, scroll from right to left. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:38 &lt;br /&gt;
||We need to select the '''variables''' from '''title''' to '''audience_score'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:46&lt;br /&gt;
||For this, we will use the '''select function'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:50&lt;br /&gt;
||Click on the '''script myVis.R'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:54&lt;br /&gt;
||In the '''Source''' window, type the following '''command'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 07:59&lt;br /&gt;
||'''Run''' the current line.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:02&lt;br /&gt;
||Now, we will use the '''mutate function''' to add a new '''variable'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:08&lt;br /&gt;
||In the '''Source''' window, type the following '''command'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:13 &lt;br /&gt;
||Remember, we are adding a new '''variable''' named '''CriAud '''in the '''movies data frame'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:22&lt;br /&gt;
||This is to store the difference of '''critics score''' and '''audience score'''. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:29&lt;br /&gt;
||'''Run''' the last two lines of code.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:33&lt;br /&gt;
||'''moviesMu''' opens in the '''Source''' window. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:37 &lt;br /&gt;
||In the '''Source''' window, scroll from left to right. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:42 &lt;br /&gt;
||A new '''variable''' named '''CriAud''' is added. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:48&lt;br /&gt;
||Let us summarize what we have learnt.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 08:52&lt;br /&gt;
||In this tutorial, we have learnt about the following '''functions''' available in the '''dplyr package: '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:00&lt;br /&gt;
||'''select'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:01&lt;br /&gt;
||'''rename'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:02&lt;br /&gt;
||'''mutate'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:04&lt;br /&gt;
||We now suggest an assignment.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:08&lt;br /&gt;
||Use the''' built-in data set airquality'''. Using '''select function''' select the '''variables Ozone, Wind''', and '''Temp''' in this '''data set'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:20&lt;br /&gt;
||Use the '''built-in data set mtcars'''. Rename the '''variables mpg''' and '''cyl '''with '''MilesPerGallon''' and '''Cylinder''', respectively.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:33&lt;br /&gt;
||The video at the following link summarises the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:37&lt;br /&gt;
||Please download and watch it.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:41&lt;br /&gt;
||We conduct workshops using Spoken Tutorials and give certificates.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:46&lt;br /&gt;
||Please contact us.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:49&lt;br /&gt;
||Please post your timed queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:54&lt;br /&gt;
||Please post your general queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:59&lt;br /&gt;
||The '''FOSSEE '''team coordinates the '''TBC '''project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:02&lt;br /&gt;
||For more details, please visit these sites.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 10:07&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:13&lt;br /&gt;
||The script for this tutorial was contributed by Varshit Dubey (CoE Pune).&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:20&lt;br /&gt;
||This is Sudhakar Kumar from IIT Bombay signing off. Thanks for watching.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Sakinashaikh</name></author>	</entry>

	</feed>