Difference between revisions of "CRG Introduction to R 2018"
From Bioinformatics Core Wiki
Line 9: | Line 9: | ||
=== Course Instructors === | === Course Instructors === | ||
* [mailto:sarah.bonnin@crg.eu Sarah Bonnin] | * [mailto:sarah.bonnin@crg.eu Sarah Bonnin] | ||
− | |||
<br> | <br> | ||
Line 22: | Line 21: | ||
The day before each session, the slides will be uploaded in case you want to print them.<br> | The day before each session, the slides will be uploaded in case you want to print them.<br> | ||
− | |||
<br> | <br> | ||
* <b>Day 1</b> | * <b>Day 1</b> | ||
− | ** Introduction to R Studio<br>We will use the R Studio [http:// | + | ** Introduction to R Studio<br>We will use the R Studio [http://rstudio.linux.crg.es server] on the server CRG. We will go through what can be done with R Studio, from file and folders manipulation/navigation, to getting help on R functions. |
− | ** Basics of R | + | ** Paths / directories |
+ | ** Basics of R: syntax, create an object, manipulate the object, simple arithmetics. | ||
** Functions usage in R<br>Arguments. Get help. | ** Functions usage in R<br>Arguments. Get help. | ||
** R scripts: write and save commands, run them as a block. Comment code. | ** R scripts: write and save commands, run them as a block. Comment code. | ||
** Data types. | ** Data types. | ||
− | ** Vectors<br>Basic (and most important) data structure in R. We will learn how to create, modify, subset, manipulate, compare vectors. | + | ** Data structures: |
− | * | + | ***Vectors<br>Basic (and most important) data structure in R. We will learn how to create, modify, subset, manipulate, compare vectors. |
− | ** Introduction to factors: categorical vectors. | + | *** Introduction to factors: categorical vectors. |
** Missing values: how to deal with NA values. | ** Missing values: how to deal with NA values. | ||
− | [[Media: | + | |
+ | [[Media:|Slides day1]] | ||
<br> | <br> | ||
− | [[Media: | + | [[Media:|Exercises day1]] |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<br> | <br> | ||
* <b>Day 2</b> | * <b>Day 2</b> | ||
** Matrices & data frames<br>2-dimensional objects: how to create, subset, manipulate. | ** Matrices & data frames<br>2-dimensional objects: how to create, subset, manipulate. | ||
** Library / packages<br>Install and load packages. Look for functions in those packages. | ** Library / packages<br>Install and load packages. Look for functions in those packages. | ||
− | ** | + | ** Input / output<br>Reading in and writing out. |
− | [[Media: | + | [[Media:|Slides day2]] |
<br> | <br> | ||
− | [[Media: | + | [[Media:|Exercises day2]] |
<br> | <br> | ||
− | + | * <b>Day 4</b> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | * <b>Day | + | |
** Basic plotting (base graphics package)<br>Scatter plots, boxplots, barplots, pie plots, histograms. | ** Basic plotting (base graphics package)<br>Scatter plots, boxplots, barplots, pie plots, histograms. | ||
** Introduction to ggplot2 package<br>ggplot2 provides functions for creating and customizing plots. We will learn the basic structure and how to produce simple plots. | ** Introduction to ggplot2 package<br>ggplot2 provides functions for creating and customizing plots. We will learn the basic structure and how to produce simple plots. | ||
** Input / output<br>We will save plots as files in different formats, both from R Studio and from the terminal. | ** Input / output<br>We will save plots as files in different formats, both from R Studio and from the terminal. | ||
− | [[Media: | + | [[Media:|Slides day4]] |
<br> | <br> | ||
− | [[Media: | + | [[Media:|Exercises day4]] |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<br> | <br> |
Revision as of 16:55, 15 March 2018
Contents
Description
This is an introductory course to R programming.
The course is offered in 4 slow-paced practicums for absolute beginners. The goal is to offer a good base with a lot of hands on exercises.
We will use R Studio on the server of the CRG.
Course Instructors
Dates, Time and Location
- March 19-20, April 16-17 2018
- 10:00 - 14:00
- PRBB Bioinformatics classroom (468). 4th floor. The hotel/North wing.
Course Syllabus, Schedule, and Materials
The day before each session, the slides will be uploaded in case you want to print them.
- Day 1
- Introduction to R Studio
We will use the R Studio server on the server CRG. We will go through what can be done with R Studio, from file and folders manipulation/navigation, to getting help on R functions. - Paths / directories
- Basics of R: syntax, create an object, manipulate the object, simple arithmetics.
- Functions usage in R
Arguments. Get help. - R scripts: write and save commands, run them as a block. Comment code.
- Data types.
- Data structures:
- Vectors
Basic (and most important) data structure in R. We will learn how to create, modify, subset, manipulate, compare vectors. - Introduction to factors: categorical vectors.
- Vectors
- Missing values: how to deal with NA values.
- Introduction to R Studio
[[Media:|Slides day1]]
[[Media:|Exercises day1]]
- Day 2
- Matrices & data frames
2-dimensional objects: how to create, subset, manipulate. - Library / packages
Install and load packages. Look for functions in those packages. - Input / output
Reading in and writing out.
- Matrices & data frames
[[Media:|Slides day2]]
[[Media:|Exercises day2]]
- Day 4
- Basic plotting (base graphics package)
Scatter plots, boxplots, barplots, pie plots, histograms. - Introduction to ggplot2 package
ggplot2 provides functions for creating and customizing plots. We will learn the basic structure and how to produce simple plots. - Input / output
We will save plots as files in different formats, both from R Studio and from the terminal.
- Basic plotting (base graphics package)
[[Media:|Slides day4]]
[[Media:|Exercises day4]]