From the course: R Essential Training: Wrangling and Visualizing Data

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Packages for R

Packages for R

From the course: R Essential Training: Wrangling and Visualizing Data

Start my 1-month free trial

Packages for R

- [Narrator] 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, install.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…

Contents