From the course: Complete Guide to R: Wrangling, Visualizing, and Modeling Data

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Packages for R

Packages for R

- [Instructor] One of the great things about R, like many programming languages, is that it is extensible. By using packages, you can give additional functionality and capabilities to R that make it really so you can do nearly anything. Let me give you an example of how this works in a short script. I am running a command right here to check whether a package called pacman, which stands for package manager, is installed. If it's not installed, then we will run this command installed.packages pacman. So I'm going to run that one. Now, it turns out I already have pacman installed. I can come here to my Packages and you can see I've got it down here a little bit. I scroll down. Now I've already got pacman installed. You can come over to Packages and you can search for it if you scroll down a little bit. There it is. It's installed. But I'm now going to use pacman to load several other packages. You can do this using default R commands, but I'm going to load a few packages called pacman…

Contents