-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Petersen
committed
May 14, 2024
1 parent
11f22bf
commit 768a3f1
Showing
1 changed file
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,32 @@ | ||
# Getting Started with R for Data Analysis | ||
|
||
The book uses `R` for statistical analyses (<http://www.r-project.org>). | ||
R is a free software environment; you can download it at no charge here: <https://cran.r-project.org> | ||
R is a free software environment; you can download it at no charge here: <https://cran.r-project.org>. | ||
|
||
## Initial Setup {#sec-initialSetup} | ||
|
||
To get started, follow the following steps: | ||
|
||
1. Install `R`: <https://cran.r-project.org> | ||
1. Install `RStudio Desktop`: <https://posit.co/download/rstudio-desktop> | ||
1. After installing `RStudio`, open `RStudio` and run the following code in the console to install several key `R` packages: | ||
```{r} | ||
#| eval: false | ||
install.packages(c("petersenlab","tidyverse","psych")) | ||
``` | ||
|
||
If you are in Dr. Petersen's class, also perform the following steps: | ||
|
||
1. Set up a free account on [GitHub.com](https://github.com). | ||
1. Download GitHub Desktop: <https://desktop.github.com/> | ||
|
||
## Installing Packages {#sec-installingPackages} | ||
|
||
You can install R packages using the following syntax: | ||
|
||
```{r} | ||
#| eval: false | ||
install.packages("INSERT_PACKAGE_NAME_HERE") | ||
``` |