-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.qmd
163 lines (88 loc) · 4.13 KB
/
index.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
title: "Course Information"
author: "Government Analysis Function and ONS Data Science Campus"
engine: knitr
execute:
echo: true
eval: false
freeze: auto # re-render only when source changes
format:
html:
highlight: null
theme:
light: flatly
dark: darkly
toc: true
toc-title: Contents
toc-location: right
toc-depth: 3
number-sections: true
link-external-newwindow: true
embed-resources: true
---
![](Images/AF_DSC_banner.png){fig-alt="Data Science Campus and Analysis Function logos."}
> To switch between light and dark modes, use the toggle in the top left
# Introduction
This course will cover basic concepts and give you the confidence to work independently in the R programming language. No prior coding or statistical knowledge is assumed, however you should be confident using basic computer software.
The course is split into chapters; each chapter will build upon the previous one. It will emphasise the application of skills, building confidence and resilience in programming.
It is essential that you have frequent opportunities to practice what you have learnt from the course.
# Course Materials
The course materials come in several formats:
* HTML pages such as the one you are reading now
* Data [](datasets.qmd) we will use during the course. **It's highly recommended you create a project with a 'data' folder and download all the required datasets before starting the course**
You can also navigate to the course Github Repository and clone or fork the website structure for yourself. If you are new to programming and version control, we recommend you remain on the website to gain the best experience.
# Software Requirements
* R programming language
* R studio (recommended but not essential)
* Web browser (Internet connection not necessary)
* Excel or other spreadsheet software for viewing csv and xlsx documents
# Packages
Packages are the fundamental units of reproducible R code. They include reusable R functions, the documentation that describes how to use them, and sample data. The following will be used in this course:
* tidyverse
* readxl
* janitor
# Pre-Course Check-list:
* Install R and RStudio on your laptop as per your department's guidance.
* Check your department's guidelines for installing packages.
* Save the data from the ZIP file to your hard drive in your working directory.
# Course Overview
The course is divided into 6 chapters, over the 2 days we will cover,
1. **Chapter One - Getting Started with R**
* Be familiar with R Studio.
* RStudio environment, layout, and customization.
* Understand the Key Benefits of using R.
* How to run code in R.
* Know where to get help.
* Discover R’s data types.
* Be able to create Variables.
<br>
2. **Chapter Two - Data Structures**
* Be familiar with data structures in R.
* Understand how vectors operate.
* Be familiar with lists.
* Be familiar with data frames and tibbles.
<br>
3. **Chapter Three - Importing and Exporting Data**
* Organise our work
* Have an understanding of what packages are.
* Be able to load and install a package.
* Be able to check package versions and R version.
* Be able to import data from multiple formats.
* Be able to inspect loaded data and select elements within the data frame.
* Be able to export data.
* Be able to explore data.
<br>
4. **Chapter Four - Tibbles and Dplyr**
* Understand the importance of clean variable names.
* Be able to clean column names using the janitor package.
* Understand the use of the pipe operator.
* Be able to sort data with dplyr’s arrange verb.
* Be able to select data with dplyr’s select verb.
* Be able to filter data with dplyr’s filter verb.
* Be able to transform data with dplyr’s mutate verb.
* Be able to join datasets together.
<br>
5. **Chapter Five - Summary Statistics and Aggregation**
* Describe numeric and categorical data
* Aggregate and data
6. **Chapter Six - Case Study**