Skip to content

Commit 9e3d945

Browse files
Merge pull request #289 from naupaka/fix-280
Revise base vs add-on package text to address #280
2 parents b775537 + bb7caef commit 9e3d945

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

episodes/03-basics-factors-dataframes.Rmd

+6-7
Original file line numberDiff line numberDiff line change
@@ -418,20 +418,19 @@ to understand how to manipulate factors.
418418
## Tip: Packages in R -- what are they and why do we use them?
419419

420420
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`
428424
(which you'll do in the next few lessons), you would use the following command:
429425

430426
```{r}
431427
# install a package from CRAN
432428
install.packages("ggplot2")
429+
install.packages("dplyr")
433430
```
434431

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).
433+
435434
::::::::::::::::::::::::::::::::::::::::::::::::::
436435

437436
## Subsetting data frames

0 commit comments

Comments
 (0)