Hey there!
This is a public GitHub repository to share the files needed for the Kansas State University 2019 AGSA R Workshop - Introduction to R, taught by @leombastos.
The workshop was divided into 2 days, 2 hours per day:
-
day 1:
-
Basics (1h)
- R and RStudio (RStudio panels).
- R role in reproducible research.
- R basic concepts (package, function, argument, object, object classes).
- Creating a data set.
- Checking data (summary, glimpse).
- Intro to ggplot (philosophy).
- Using ggplot for exploratory data viz.
-
Intermediate (1h)
- Using RStudio projects.
- Import data, discuss about tidy data concept.
- Using dplyr and tidyr for data wrangling.
- EXERCISE!
-
-
day 2:
- Intermediate (2h)
- Run RCBD model, talk about model specification syntax.
- Look into ANOVA.
- Check model assumptions (talk about assumptions and what to do when they are violated).
- Extract model means and pairwise comparison results.
- Creating publication-ready plot with means and letters.
- Intermediate (2h)
-
Download this repository (click on the green "Code" button above and select "Download ZIP")
-
Unzip the repository, launch the RStudio project (by clicking on the "2019_rworkshop_introtoR.Rproj" file).
-
On RStudio, go to the "Files" tab (lower right), click on folder "markdown", and open file
- "Basic1_partial.R" for day 1, basics
- "Intermediate1_partial.Rmd" for day 1, intermediate
- "Intermediate2_partial.Rmd" for day 2, intermediate
-
You can code along with us by watching the following YouTube videos: