SubjectsSubjects(version: 945)
Course, academic year 2023/2024
   Login via CAS
Flash R course - MB120C15E
Title: Flash R course
Czech title: R bleskově
Guaranteed by: Department of Botany (31-120)
Faculty: Faculty of Science
Actual: from 2023
Semester: winter
E-Credits: 2
Examination process: winter s.:
Hours per week, examination: winter s.:0/4, C [DS]
Capacity: 25
Min. number of students: 1
4EU+: no
Virtual mobility / capacity: no
State of the course: taught
Language: English
Explanation: 13.9.23 změna semestru na ZS
Note: enabled for web enrollment
Guarantor: Mgr. Martin Weiser, Ph.D.
Incompatibility : MB120C15, MB120P147E, MB162P13
Is incompatible with: MB120C15, MB120P147E
Annotation -
Last update: Mgr. Martin Weiser, Ph.D. (19.09.2023)
Really intensive R course. Test at the end. For those who prefer slower pace and individual consultations, we recommend "R for life".
In 2023/2024, the course will take place in the B12 room (Benatska 2), from 22nd Jan to 25th Jan (Mon-Thu), starting at 9:00 AM, expected end around 4 PM.

Literature -
Last update: Mgr. Martin Weiser, Ph.D. (02.10.2020)

Grolemund G (2014) Hands-On Programming with R. O'Reilly. (https://rstudio-education.github.io/hopr/)

Crawley MJ (2007) The R book. John Wiley & Sons. (second edition exists already)

Venables WN & Smith DM (2008) An introduction to R. R development core team.

http://www.r-project.org

Requirements to the exam -
Last update: Mgr. Martin Weiser, Ph.D. (04.08.2022)

Test (written exam, pass/fail): data manipulation, basic programming and graphics.

Syllabus -
Last update: Mgr. Martin Weiser, Ph.D. (19.09.2023)

Interactive lectures (with computers). We will introduce basics of work with data, graphics and programming in R (all the non-statistical tricks). This part roughly corresponds with chapters 1-5 in Crawley (2007).

 

Topics:

 

1. Introduction to R. Help and literature. R environment and specifics of R. R-editor, Tinn-R with highlighted syntax; data import and export, basics of syntax, operators, signs and brackets.

 

2. Basic structures in R. Variables, vectors, matrices, data frames, arrays, strings, characters vs. numbers. Indexes as a crucial concept.

 

3. Brief "bestiary" of some useful functions. Random number generation. Operations with vectors and matrices (sample, order, sort, diff, max, min, unique, sums, which). Operations with strings. Basic mathematical functions.

 

4. Scripting and programming (code writing): most important, we will dedicate extra time to make sure anybody understand this.

Functions, arguments of functions. Control flow & loops (if, else, for, while, repeat). Functions within/inside function.

 

5. Good programming practice.

 

6. Data visualisation and graphics in R. Good practice in data visualization. Plot, lines, points, abline, text, image, par etc. as tools to visualize nearly anything. Lattice (Trellis) graphics. Connection of graphics and programming.

 

 

 

The course is taught with the support of the project reg. number CZ.02.2.69/0.0/0.0/16_015/0002362

 
Charles University | Information system of Charles University | http://www.cuni.cz/UKEN-329.html