Difference between revisions of "CRG Introduction to R 2018"
From Bioinformatics Core Wiki
(Created page with "blabla") |
|||
Line 1: | Line 1: | ||
− | + | __TOC__ | |
+ | |||
+ | === Description === | ||
+ | This is an introductory course to R programming. | ||
+ | <br> The course is offered in 4 slow-paced practicums for <b>absolute beginners</b>. The goal is to offer a good base with a lot of hands on exercises.<br> | ||
+ | We will use [https://www.rstudio.com R Studio] on the [http://rstudio01.linux.crg.es server] of the CRG. | ||
+ | <br> | ||
+ | |||
+ | === Course Instructors === | ||
+ | * [mailto:sarah.bonnin@crg.eu Sarah Bonnin] | ||
+ | * [mailto:estefania.mancini@crg.eu Estefania Mancini] | ||
+ | <br> | ||
+ | |||
+ | === 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. | ||
+ | |||
+ | <br> | ||
+ | |||
+ | === Course Syllabus, Schedule, and Materials === | ||
+ | |||
+ | The day before each session, the slides will be uploaded in case you want to print them.<br> | ||
+ | #Slides for the whole course are [[Media:1707_Introduction_to_R_ALL.pdf|here]] | ||
+ | <br> | ||
+ | * <b>Day 1</b> | ||
+ | ** Introduction to R Studio<br>We will use the R Studio [http://rstudio01.linux.crg.es server] of the 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<br>Syntax, special characters, create an object, manipulate the object, simple arithmetics. | ||
+ | ** Functions usage in R<br>Arguments. Get help. | ||
+ | ** R scripts: write and save commands, run them as a block. Comment code. | ||
+ | ** Data types. | ||
+ | ** Vectors<br>Basic (and most important) data structure in R. We will learn how to create, modify, subset, manipulate, compare vectors. | ||
+ | ** Input / output<br>Reading in and writing out. Changing directory. | ||
+ | ** Introduction to factors: categorical vectors. | ||
+ | ** Missing values: how to deal with NA values. | ||
+ | [[Media:1707_Introduction_to_R_day1.pdf|Slides day1]] | ||
+ | <br> | ||
+ | [[Media:1707_Exercises_day1.pdf|Exercises day1]] | ||
+ | <br> | ||
+ | [[Media:exercise1_correction.R|Correction exercise 1]] | ||
+ | <br> | ||
+ | [[Media:exercise2_correction.R|Correction exercise 2]] | ||
+ | <br> | ||
+ | [[Media:exercise3_correction.R|Correction exercise 3]] | ||
+ | <br> | ||
+ | * <b>Day 2</b> | ||
+ | ** 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. | ||
+ | ** More on input / output<br>Reading in more complex files, different options to adapt to the input file. Writing out files the way you want to see your data. | ||
+ | [[Media:1707_Introduction_to_R_day2.pdf|Slides day2]] | ||
+ | <br> | ||
+ | [[Media:1707_Exercises_day2.pdf|Exercises day2]] | ||
+ | <br> | ||
+ | [[Media:exercise4_correction.R|Correction exercise 4]] | ||
+ | <br> | ||
+ | [[Media:exercise5_correction.R|Correction exercise 5]] | ||
+ | <br> | ||
+ | [[Media:exercise6_correction.R|Correction exercise 6]] | ||
+ | <br> | ||
+ | [[Media:exercise7_correction.R|Correction exercise 7]] | ||
+ | <br> | ||
+ | * <b>Day 3</b> | ||
+ | ** 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. | ||
+ | ** Input / output<br>We will save plots as files in different formats, both from R Studio and from the terminal. | ||
+ | [[Media:1707_Introduction_to_R_day3.pdf|Slides day3]] | ||
+ | <br> | ||
+ | [[Media:1707_Exercises_day3.pdf|Exercises day3]] | ||
+ | <br> | ||
+ | [[Media:exercise8_correction.R|Correction exercise 8]] | ||
+ | <br> | ||
+ | [[Media:exercise9_correction.R|Correction exercise 9]] | ||
+ | <br> |
Revision as of 17:42, 14 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.
- Slides for the whole course are here
- Day 1
- Introduction to R Studio
We will use the R Studio server of the 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
Syntax, special characters, 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.
- Vectors
Basic (and most important) data structure in R. We will learn how to create, modify, subset, manipulate, compare vectors. - Input / output
Reading in and writing out. Changing directory. - Introduction to factors: categorical vectors.
- Missing values: how to deal with NA values.
- Introduction to R Studio
Slides day1
Exercises day1
Correction exercise 1
Correction exercise 2
Correction exercise 3
- 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. - More on input / output
Reading in more complex files, different options to adapt to the input file. Writing out files the way you want to see your data.
- Matrices & data frames
Slides day2
Exercises day2
Correction exercise 4
Correction exercise 5
Correction exercise 6
Correction exercise 7
- Day 3
- 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)
Slides day3
Exercises day3
Correction exercise 8
Correction exercise 9