You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: episodes/03-basics-factors-dataframes.Rmd
+6-7
Original file line number
Diff line number
Diff line change
@@ -418,20 +418,19 @@ to understand how to manipulate factors.
418
418
## Tip: Packages in R -- what are they and why do we use them?
419
419
420
420
Packages are simply collections of functions and/or data that can be used to extend the
421
-
capabilities of R beyond the core functionality that comes with it by default. There are
422
-
useful R packages available that span all types of statistical analysis, data visualization,
423
-
and more. The main place that R packages are installed from is a website called
424
-
[CRAN](https://cran.r-project.org/) (the Comprehensive R Archive Network). Many thousands
425
-
of R packages are available there, and when you use the built-in R function `install.packages()`,
426
-
it will look for a CRAN repository to install from. So, for example, to install
427
-
[tidyverse](https://www.tidyverse.org) packages such as `dplyr` and `ggplot2`
421
+
capabilities of R beyond the core functionality that comes with it by default. The default set of functions and packages that come 'in the box' when you install R for the first time on a given computer are called 'base R'. However, one of the major benefits of using an open source programming language is that there are thousands of useful R packages freely available that span all types of statistical analysis, data visualization,
422
+
and more. The main place that these additional R packages are made available is from a website called the Comprehensive R Archive Network ([CRAN](https://cran.r-project.org/)). When you use the built-in R function `install.packages()`,
423
+
it will look on CRAN for the package and install it on your computer. So, for example, to install packages such as `dplyr` and `ggplot2`
428
424
(which you'll do in the next few lessons), you would use the following command:
429
425
430
426
```{r}
431
427
# install a package from CRAN
432
428
install.packages("ggplot2")
429
+
install.packages("dplyr")
433
430
```
434
431
432
+
These two packages are among the most popular add on packages used in R, and they are part of a large set of very useful packages called the [tidyverse](https://www.tidyverse.org). Packages in the tidyverse are designed to work well together and are made to work with tidy data (which we described earlier in this lesson).
0 commit comments