‫So now let us learn how to install packages in r first.
‫What is a package packages in R is what libraries are in other programming languages packages is basically
‫a collection of code that other people have written and that gives some additional functions to our
‫program the availability of numerous packages for r makes R one of the most powerful data things programming
‫languages for example there is a package called DG plot DG plot package is used to create different
‫types of graphs plot charts for our data so that we can visualize our data in a better way.
‫To let us learn how to install packages in that you can also see that in the right bottom window this
‫window about which we have not talked about till now there is a tab.
‫Title packages
‫you can see these are the inbuilt packages which are already installed with R.
‫You can scroll down
‫on the left of the name of these packages.
‫There is a checkbox all of these are unchanged which means all these packages are installed but they
‫are not loaded.
‫You cannot use them in your code to use a package.
‫You will have to loaded to loaded.
‫You can just simply take the check box.
‫You can see a code is run in the console and that particular package has been loaded.
‫Now you can use DG plot while writing the code.
‫But these are only the in big packages.
‫You may want to install a package which is not in big.
‫I am writing here some of the Web you added where you can see a whole list of packages available with
‫R so written here.
‫These three links if you brought all these links in the first link you can find the packages are clubbed
‫by their use case all the packages which help in plotting and graphing.
‫I'll put in one group for pre processing the data all the packages available at Club then put in one
‫group.
‫So the first link will give you packages club and two groups.
‫The second link will give you packages in the alphabetical order by their names to so it will list all
‫the packages in R by their names.
‫It's a huge list.
‫The third one is another website where people to make the packages which can be used by other people.
‫So it's a huge community you can find numerous packages there.
‫Also to browse the Ural through out window you can use browse you all command so will raid browse your
‫role.
‫So when we start typing browse since it is an inbuilt command our studio prompts us the all the commands
‫which start with browse.
‫You can navigate using up and down key.
‫Select the one that you want and prestige tab key.
‫This will autocomplete that of the command for you within this within this decade.
‫We need to enter the URL will first have double quotation marks.
‫Will copy the mural and pasted here and will run this command.
‫You can see that website is opened up in the default browser.
‫And here you can see the packages are clubbed topic leaves so if you want did you upload it is in the
‫graphics.
‫Topic you can explore this on your own.
‫If you are interested in some particular package go ahead and install it.
‫So now let us learn how to install a package.
‫There are two ways.
‫One is the way provided by our studio.
‫It is you go to the tools in the menu bar we didn't do it.
‫There is an option of install package here if we want to install package from the repository of crime.
‫You just write the name of the package here and it will install it.
‫It was downloaded from decline Qur'an repository and installed if you want to do it from some other
‫website you can change the install from option hit.
‫So this is one way I'll show you the second way.
‫And I suggest that we use the secondary the second ways by using this script as click cancel here in
‫the left script window.
‫We'll write a script to install package y.
‫I suggest this is because when you are sharing your code with someone else that someone else should
‫also install the package which is required by your code.
‫If you have not written it in the script the other person will not come to know which package you have
‫installed.
‫If you just go to Tools and install a package it will not be part of the script.
‫So it is better that you write the code to install package in the script.
‫If you are only going to use the analysis then you can go ahead and use these tools option also.
‫So let us install a package which is a relevant and declined repository will write install not packages
‫within this bracket.
‫We need to give the name of the package and within double quotation marks will write lib linear
‫labeling.
‫Here is a package which is used to do linear regression analysis so will press control enter
‫you can see the control was giving a warning because as I told you r is a case sensitive language and
‫I entered capital L instead of small.
‫So let's correct this and on it.
‫So it is automatically downloading from grand and once it is downloaded it has installed here and the
‫side window also.
‫You can see lib linear is available and the description is altered it in here.
‫Linear predictive models can be built using the celebrity.
‫Now this package is a start again.
‫It is not loaded to see the list of all the installed packages will right library open and close a bracket
‫to libraries where all the packages are stored.
‫So when I run this command it will give the list of all the packages installed.
‫You can see this is the list of packages installed and a smaller description enclosed just add.
‫And if you want to see the list of currently loaded packages will rate search open and close bracket.
‫If you run the search command
‫this is the list of packages that are currently loaded and which you can use to load up package which
‫is installed will use a required keyword so all right come on require and relate labeling it with a
‫double quotation marks.
‫So
‫let's go.
‫Double quotation marks.
‫So you see earlier when we ran the search command labeling it was not available.
‫Now if you run it again the second one is labeling it and as it is available you can also see in the
‫date window labeling it now has a tag
‫to remove.
‫You can simply unpick the package or you can write detach the EPA page within double quotation marks
‫package colon
‫labeling it
‫comma and load is equal to
‫is equal to to
‫control enter.
‫Now you can see that take is removed from labeling it.
‫Now to uninstall this package we will use remove packages command the will rate remove Dodd packages
‫within bracket we will rate within double quotation marks.
‫The name of this package lib linear
‫control center and that package is removed.
‫You'll not be able to find it in the user library to know more about any package.
‫You can type question mark and then write the name of the package
‫so I write.
‫Did you plot to run this command.
‫You can see in the right window there is a help tab that help guide has all the documentation all standard
‫packages commands everything whenever you want to know about any standard command or package.
‫Just a question mark.
‫Command name odd package name and you'll get all the information about it.
‫So this is how we install a package.
‫Make it available by loading it uninstall it or make it unavailable by detecting it.
‫This is all about packages in the next video we'll look at some inbuilt datasets of odd outcomes with
‫some in big data set.
‫We look at some of those data.