Introduction to R Programming

About the Training

This training is part of a collaborative initiative between Breeding Insight - Cornell University and INTA Costa Rica. Remote sessions will begin on March 28th, 2025, and continue on consecutive Fridays until May 2nd. Each session consists of a 2-hour practical workshop. The only prerequisite is having R and RStudio installed on your computer. To help you with the installation process, please refer to the following tutorial.


Course Schedule

Day 1

1. Theoretical Presentation (20 min)

2. Practical Session 1 (1h 40min)

  • Familiarization with RStudio interface
  • Basic operations
  • Creating objects
    • Indexing

Session 1 Assignment (estimated time: 2h)


Day 2

Session 2 (2h)

  • Creating objects (continuation)
    • Matrices
    • Data frames
    • Lists
    • Arrays
  • Data import and export

Session 2 Assignment (estimated time: 2h)


Day 3

Session 3 (2h)

  • Conditional structures
  • Loop structures
  • Vectorization
  • Creating graphics

Session 3 Assignment (estimated time: 2h)


Day 4

Session 4 (2h)

  • Examples and challenges including:
    • tidyverse
    • ggplot2
  • Report generation (R markdown)
  • A didactic example of application in genetics