Course Overview


Course Integrity

This course is compiled automatically on 2024-09-11

The course is tested and available on MacOS, Windows and Ubuntu Linux for R version 4.4.0 (2024-04-24)



Overview

This course introduces R and statistical programming.

The course consists of 2 sections, 1 on basic R data types and data input/output and a second on conditionals and looping. Each section is presented as HTMl presentations or single page document. Exercises and answer sheets are included after all subsections to practice techniques and provide future reference examples.

Course material and exercises are available to view as rendered HTML at https://rockefelleruniversity.github.io/Intro_To_R_1Day/. All material is available to download under GPL v2 license.



Setting up


System Requirements

Install R

R can be installed from the R-project website.

The R website can be found here http://www.r-project.org/. This website has all the latest information about R updates, conferences and installation

You can use this direct links to the install for each major OS:


Install RStudio

RStudio can be installed from the RStudio website.

http://www.rstudio.com/

RStudio can be downloaded for all platforms at the link below

https://rstudio.com/products/rstudio/download/


Install required R packages

R Packages can be installed from the course package or from CRAN/Bioconductor. These commands should be written into the R console. Once R and RStudio is installed, you can copy and paste these install commands into lower left pane of RStudio which should be labelled “Console”. If you run into any errors, do this one line at a time.

From the course package
install.packages('BiocManager')
install.packages('remotes')
BiocManager::install('RockefellerUniversity/Intro_To_R_1Day',subdir='introToR')
From CRAN and Bioconductor
install.packages('BiocManager')
BiocManager::install('methods')
BiocManager::install('ggplot2')
BiocManager::install('rmarkdown')
BiocManager::install('rio')
BiocManager::install('xaringanthemer')
BiocManager::install('knitr')
BiocManager::install('testthat')
BiocManager::install('yaml')

Download the material

Download the material




The Presentations


Introduction to R, Session 1

This section focuses on R basics such as simple data types, data IO, plotting and statistics. Session sections:

  • Introduction to R
  • Data Types
  • Reading and Writing Data

Introduction to R, Session 2

In session 2, programmatic techniques such as looping and conditional expressions are introduced The session includes longer exercises and shorter slide decks and so more time should be allocated to exercises in this session.

Session sections:

  • Looping Conditional Branching
  • Loading libraries
  • Writing Scripts
  • Getting help

Getting help


Course help

For advice, help and comments for the material covered in this course please contact us at the issues page associated to this course.

The link to the help pages can be found here


General Bioinformatics support

If you would like contact us about general bioinformatics advice, support or collaboration, please contact us the Bioinformatics Resource Center at .