Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit e7df60c

Browse files
committed
Some minor tweaks and typo fixes
1 parent dac59c8 commit e7df60c

6 files changed

+14
-18
lines changed

_episodes/01_intro.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ adapted: false
1010

1111
## Welcome
1212

13-
Welcome to **R: from Beginner to Intermediate**. Our aim is to provide you with a comprehensive overview of the R programming language assuming no prior knowledge of R or programming. While the commands may be specific to R, many of the concepts are also applicable to other programming languages. Over the course of these three sessions will gain many transferable skills and knowledge that will establish the foundations of a programmer.
13+
Welcome to **R: from Beginner to Intermediate**. Our aim is to provide you with a comprehensive overview of the R programming language assuming no prior knowledge of R or programming. While the commands may be specific to R, many of the concepts are also applicable to other programming languages. Over the course of these three sessions you will gain many transferable skills and knowledge that will establish the foundations of a programmer.
1414

1515
## Introduction to Coding For Reproducible Research
1616

1717
This workshop is offered as part of the [Coding For Reproducible Research Intiative](https://uniexeterrse.github.io/workshop-homepage/).
18-
Our ambition is to offer a recurring annual series of workshops open to all staff and students, with opportunities for novices through to more experienced users, to expand their skillsets and position them to confidently perform the informatics research projects in an efficient and reproducible way. A key objective is that the framework we put in place ensures that the workshops delivered are fit for purpose, of a consistent high standard, that delivery is sustainable in the longer term, minimises the workload burden on those who facilitate them and can adapt and expand as new training needs are identified.
18+
Our ambition is to offer a recurring annual series of workshops open to all staff and students, with opportunities for novices through to more experienced users, to expand their skillsets and position them to confidently perform their research projects in an efficient and reproducible way. A key objective is that the framework we put in place ensures that the workshops delivered are fit for purpose, of a consistent high standard, that delivery is sustainable in the longer term, minimises the workload burden on those who facilitate them and can adapt and expand as new training needs are identified.
1919

2020
Championed by and in partnership with
2121

@@ -31,11 +31,11 @@ This workshop, and the others in the series, were put together by a series of wo
3131

3232
## Workshop format
3333

34-
Today's workshop is led by XX and supported by XX. We are all here because we are passionate about sharing our knowledge and supporting the development of our colleagues. For most of us, this is not a requirement of our current position and we are doing this at the margins of our time.
34+
We are all here because we are passionate about sharing our knowledge and supporting the development of our colleagues. For most of us, this is not a requirement of our current position and we are doing this at the margins of our time.
3535

3636
As this is a beginner's workshop, we will be doing live demonstrations where we encourage you to type along with us - this is called live coding. We will pause for a break every 60-90 minutes, but there will also be periods in-between demonstrations where you are free to take additional comfort breaks if required. This is a hybrid workshop, please be aware of this, online participants we find that engagement is higher if you are willing to turn your cameras on. There will be a dedicated helper for online participants please, either raise your hand or type any questions into the chat. In person participants you are also able to use the Teams link to join the chat.
3737

38-
Our aim is to be responsive to the needs of the group, both in person and virtual. Therefore, think of the schedule as a guide rather than a strict timetable. We welcome questions and queries as we go along, there are helpers in the room so raise your hand if you need assistance. There is also a dedicated helper for the virtual participants so please raise your virtual hand to attract their attention. In person participants you are welcome to post questions in the Teams chat,if you find this easier than putting your hand up. This will be saved and distributed at the end of the workshop.
38+
Our aim is to be responsive to the needs of the group, both in person and virtual. Therefore, think of the schedule as a guide rather than a strict timetable. We welcome questions and queries as we go along, there are helpers in the room so raise your hand if you need assistance. There is also a dedicated helper for the virtual participants so please raise your virtual hand to attract their attention. In person participants you are welcome to post questions in the Teams chat, if you find this easier than putting your hand up. This will be saved and distributed at the end of the workshop.
3939

4040
We would like to highlight that we have a [code of conduct](https://uniexeterrse.github.io/intro-to-r/code.html) and by attending this workshop you are agreeing to abide by it.
4141

_episodes/02_gettingstarted.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ We should also note that, the two most important reasons for choosing a language
4848

4949
[RStudio](https://www.rstudio.com/), is an Integrated Development Environment (IDE) that provides an interface designed to improve the experience of programming with R, and to facilitate more efficient and reproducible code development. It is designed so you can have multiple elements visible at the same time within a single programme. For example plots, tables and code, rather than juggle different programmes or windows.
5050

51-
We will use RStudio IDE to write code, navigate the files found on our computer, inspect the variables we are going to create, and visualize the plots we will generate. RStudio can also be used for other things (e.g., version control, developing packages, writing Shiny apps, creating documents and slides) that we will not cover during the workshop. It can be a very powerful tool for managing how you develop code, software or programmes.
51+
We will use the RStudio IDE to write code, navigate the files found on our computer, inspect the variables we are going to create, and visualize the plots we will generate. RStudio can also be used for other things (e.g., version control, developing packages, writing Shiny apps, creating documents and slides) that we will not cover during the workshop. It can be a very powerful tool for managing how you develop code, software or programmes.
5252

5353

5454
# Navigating RStudio

_episodes/03_basic_commands.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ There are two main ways of interacting with R: using the console or by using
5151
a script. A script is a text file that contains your code. R scripts are often saved with the file extension .r or .R.
5252

5353
We want our code and workflow to be reproducible. In other words, we want to write code in a way that
54-
anyone (including ou future selves) can easily replicate, such they will obtain the same results from our code
54+
anyone (including our future selves) can easily replicate, such they will obtain the same results from our code
5555
on their computer. If we type our commands directly into the Console, they will be forgotten when you close the session.
5656
It is preferable to type the commands you want to run directly into the script editor, so that you can save the script. This way,
5757
you have a complete record of what you did,

_episodes/04_data_types.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ attrib_license_link: https://creativecommons.org/licenses/by/4.0/
1616

1717

1818

19-
# Inbuilt Datasets
19+
# Inbuilt datasets
2020

2121
R has a number of datasets included for you to practice with.
2222
We can get a list of these by running the command ```data()```
@@ -28,8 +28,6 @@ data()
2828

2929
This command won't produce any output but open a file in the scripts pane that lists the available datasets.
3030

31-
(Alt text!)["../images/r_data.png"]
32-
3331
In this session, we will be using the built-in R data sets stored in the variables ```iris``` & ```mtcars```.
3432
By having our data stored in a variable means we can easily use it with R functions and start to
3533
manipulate or process it. Note that we are using the word data very loosely, it can refer to any form of
@@ -85,7 +83,7 @@ To explore data frames, there are a number of relevant functions:
8583

8684

8785

88-
# Subsetting Data
86+
# Subsetting data
8987

9088
There are many occasions we want to "look" at some part of the data. Extract a subset is known as slicing.
9189
If we want to get a single value from the data frame, we can index a specific position using square brackets.
@@ -223,7 +221,7 @@ iris[, 2]
223221

224222

225223

226-
# Data Types
224+
# Data types
227225

228226
One key feature of a data frame is each column is classed as a specific data type.
229227

@@ -311,7 +309,7 @@ length(y)
311309
{% endhighlight %}
312310

313311

314-
# Converting Between Datatypes
312+
# Converting between data types
315313

316314
It can be critical that R has correctly assigned the right data type to your variable. If it has not you may run into
317315
errors when processing it. You therefore may want to convert between different data types. This can be done with the
@@ -331,15 +329,15 @@ typeof(y)
331329
## [1] "character"
332330
{% endhighlight %}
333331

334-
## Activity: Determining Data Yypes
332+
## Activity: Determining data types
335333

336334
Create a variable with the numbers 9,2,200, and 14.
337335
What class do you predict this variable to be? Use an R function to confirm your answer.
338336
If it is not the data type you expected, can you force R to convert it to an integer?
339337
Divide each element of the variable in half. Does this change the type of variable?
340338

341339

342-
# Data Structures
340+
# Data structures
343341

344342
R has a number of inbuilt structures that can be used to store datasets. We have encountered one of these already
345343
the data.frame. Other include:

_episodes/05_load_data.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,13 @@ Assuming you have downloaded the file into your current working directory, you c
2929
read.csv(file = "worms.csv", header = TRUE)
3030
{% endhighlight %}
3131

32-
32+
Some errors you might come across:
3333

3434
{% highlight text %}
3535
## Warning in file(file, "rt"): cannot open file 'worms.csv': No such file or
3636
## directory
3737
{% endhighlight %}
3838

39-
40-
4139
{% highlight text %}
4240
## Error in file(file, "rt"): cannot open the connection
4341
{% endhighlight %}

_episodes/06_manipulating_data.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Often we need to manipulate or extract parts of our dataset prior to doing any a
1717

1818

1919

20-
# Conditional Subsetting
20+
# Conditional subsetting
2121

2222
We have already looked at slicing subsets, where we knew the indexs of the rows or columns of the entries we wanted.
2323
There may be times when, instead we want to select rows based on a specific condition. This would require a conditional

0 commit comments

Comments
 (0)