PNG0088, Understanding and coding the R programming language, 3.0 Hp
Skriv ut kursplan
Kursplan
Nivå
Forskarnivå
Betygsskala
Kraven för kursens olika betygsgrader framgår av betygskriterier, som ska finnas tillgängliga senast vid kursstart.
Kursspråk
Engelska
Behörighetskrav
Admitted to PhD studies
Mål
The aim of the course is to help each student overcome the initial steep learning curve that is associated with learning R, and how to think in a structured and logical way to make programming easier. By the end of the course students will:
- Know the differences between data structure types and why these are used
- Be able to create data structures and extract information from these
- Understand how functions work in R and be able to create their own
- Use specific programming methods to automate repetitive processes
- Create publication-quality figures from data
- Implement and extract information from statistical objects
- Write code in a series of logical steps to create complex outputs using combinations of simple functions
Innehåll
The course is about R as a language, to allow participants to understand the code to read and write. It will start from a very basic level and teaches many of the principles that are necessary to be able to write your own programs in R but are usually skipped over in the rush to do some ‘stats’.
Each day is a combination of lectures and exercises with an in-class computer exercise introduced after every new concept. During these exercises the teachers will work with the students to help them achieve the objective of each task, and to answer any questions regarding the concepts.
Examinationsformer
There will be no formal examination to pass this course. Instead, during the course students will demonstrate during in-class exercises the following programming skills and concepts of R.
1. Creating vector and matrix structures
2. Importing and manipulating datasets using csv files created from excel
3. The 3 vector principles in R (recycling, vectorisation & indexing) and how these relate to data objects and functions
4. if-else statements, iterative loops and writing functions
5. Manipulating base graphics to produce publication-quality figures
6. Extracting, storing and plotting data from statistical objects
7. Combining the principles from 1-6 to solve complex problems
Ansvarig institution eller motsvarande
Institutionen för ekologi
Kompletterande uppgifter