Skip to content

Commit a15bcf3

Browse files
authored
Merge pull request #189 from naupaka/more-package-description
Looks good to me! Thanks for rearranging the package description!
2 parents 50486d2 + 1594630 commit a15bcf3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

_episodes_rmd/03-basics-factors-dataframes.Rmd

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,24 @@ Factors come in handy in many places when using R. Even using more
353353
sophisticated plotting packages such as ggplot2 will sometimes require you
354354
to understand how to manipulate factors.
355355

356+
> ## Tip: Packages in R -- what are they and why do we use them?
357+
>
358+
> Packages are simply collections of functions and/or data that can be used to extend the
359+
> capabilities of R beyond the core functionality that comes with it by default. There are
360+
> useful R packages available that span all types of statistical analysis, data visualization,
361+
> and more. The main place that R packages are installed from is a website called
362+
> [CRAN](https://cran.r-project.org/) (the Comprehensive R Archive Network). Many thousands
363+
> of R packages are available there, and when you use the built-in R function `install.packages()`,
364+
> it will look for a CRAN repository to install from. So, for example, to install
365+
> [tidyverse](https://www.tidyverse.org) packages such as `dplyr` and `ggplot2`
366+
> (which you'll do in the next few lessons), you would use the following command:
367+
>
368+
> ```{r}
369+
> # install a package from CRAN
370+
> install.packages("ggplot2")
371+
> ```
372+
{: .callout}
373+
356374
## Subsetting data frames
357375
358376
Next, we are going to talk about how you can get specific values from data frames, and where necessary, change the mode of a column of values.

0 commit comments

Comments
 (0)