Skip to content

Add extra callout tip about what packages are #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions _episodes_rmd/03-basics-factors-dataframes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,24 @@ Factors come in handy in many places when using R. Even using more
sophisticated plotting packages such as ggplot2 will sometimes require you
to understand how to manipulate factors.

> ## Tip: Packages in R -- what are they and why do we use them?
>
> Packages are simply collections of functions and/or data that can be used to extend the
> capabilities of R beyond the core functionality that comes with it by default. There are
> useful R packages available that span all types of statistical analysis, data visualization,
> and more. The main place that R packages are installed from is a website called
> [CRAN](https://cran.r-project.org/) (the Comprehensive R Archive Network). Many thousands
> of R packages are available there, and when you use the built-in R function `install.packages()`,
> it will look for a CRAN repository to install from. So, for example, to install
> [tidyverse](https://www.tidyverse.org) packages such as `dplyr` and `ggplot2`
> (which you'll do in the next few lessons), you would use the following command:
>
> ```{r}
> # install a package from CRAN
> install.packages("ggplot2")
> ```
{: .callout}

## Subsetting data frames

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.
Expand Down