Skip to content

Commit d1904f6

Browse files
Proof reading for working with data in R
1 parent 536bb27 commit d1904f6

13 files changed

+103
-104
lines changed

individual_modules/section_landing_pages/working_with_data_in_R.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
Over two sessions, learn how to use the Tidyverse to work with data in R. The Tidyverse is a collection of R packages designed to help you manipulate, clean and analyse data. This course will introduce you to the functionality of several key packages, while also discussing some of the conventions the Tidyverse uses when working with data. By the end of the course, participants should feel confident to continue using the Tidyverse to work with datasets in R.
66

77
## Course Objectives
8-
On completion of this series of workshops, participants will:
9-
- Be able to explain what is meant by the ‘tidy’ format (a widely recognised convention for structuring data).
8+
- Explain what is meant by the ‘tidy’ format (a widely recognised convention for structuring data).
109
- Know how to read tabular data from a file to a dataframe.
1110
- Be able to manipulate datasets, including creating new variables, filtering data, summarising and sorting data.
1211
- Know how to join multiple datasets together and reshape data.
13-
- Learn how to work with strings and dates (as time permits).
14-
- Gain hands on experience working with R notebooks for analysis.
12+
- Know how to work with strings and dates (as time permits).
13+
- Experience working with R notebooks for analysis.
1514

1615
## Pre-requisite Knowledge
1716
This course is for participants who already have some programming experience with R. It assumes familiarity with things like: creating and setting variables, the basic data structures (dataframes, vectors, lists), using functions, running R code and viewing console output, installing R packages and using R packages in your own code. Experience with R notebooks is not required.

individual_modules/working_with_data_in_R/combining_datasets.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"## Learning Objectives\n",
4444
"- Understand the purpose and methods of joining dataset in R using the `dplyr` package\n",
4545
"- Perform left joins to combine datasets based on common columns\n",
46-
"- Handle and resolve issues that arise from repeated key during joins\n",
46+
"- Handle and resolve issues that arise from repeated keys during joins\n",
4747
"- Recognize and avoid pitfalls related to joining on columns with double data types\n",
4848
"\n",
4949
"## Joining datasets\n",
@@ -625,7 +625,7 @@
625625
},
626626
{
627627
"cell_type": "code",
628-
"execution_count": 1,
628+
"execution_count": 13,
629629
"id": "948ebf16-e591-4b35-9dd8-ed37af0e5974",
630630
"metadata": {
631631
"editable": true,
@@ -640,13 +640,13 @@
640640
{
641641
"data": {
642642
"text/html": [
643-
"<div id=\"RkZVJlhgSwLi\" data-shufflequestions=\"False\"\n",
643+
"<div id=\"oaDUvKfOzObl\" data-shufflequestions=\"False\"\n",
644644
" data-shuffleanswers=\"True\"\n",
645645
" data-preserveresponses=\"false\"\n",
646646
" data-numquestions=\"1000000\"\n",
647647
" data-maxwidth=\"600\"\n",
648648
" style=\"border-radius: 10px; text-align: left\"> <style>\n",
649-
"#RkZVJlhgSwLi {\n",
649+
"#oaDUvKfOzObl {\n",
650650
" --jq-multiple-choice-bg: #6f78ffff;\n",
651651
" --jq-mc-button-bg: #fafafa;\n",
652652
" --jq-mc-button-border: #e0e0e0e0;\n",
@@ -828,7 +828,7 @@
828828
{
829829
"data": {
830830
"application/javascript": [
831-
"var questionsRkZVJlhgSwLi=[\n",
831+
"var questionsoaDUvKfOzObl=[\n",
832832
" {\n",
833833
" \"question\": \"What is the primary purpose of joining datasets?\",\n",
834834
" \"type\": \"many_choice\",\n",
@@ -1656,8 +1656,8 @@
16561656
" Someone more knowledgeable could make this better ;-) */\n",
16571657
"\n",
16581658
" function try_show() {\n",
1659-
" if(document.getElementById(\"RkZVJlhgSwLi\")) {\n",
1660-
" show_questions(questionsRkZVJlhgSwLi, RkZVJlhgSwLi); \n",
1659+
" if(document.getElementById(\"oaDUvKfOzObl\")) {\n",
1660+
" show_questions(questionsoaDUvKfOzObl, oaDUvKfOzObl); \n",
16611661
" } else {\n",
16621662
" setTimeout(try_show, 200);\n",
16631663
" }\n",
@@ -1666,8 +1666,8 @@
16661666
" {\n",
16671667
" // console.log(element);\n",
16681668
"\n",
1669-
" //console.log(\"RkZVJlhgSwLi\");\n",
1670-
" // console.log(document.getElementById(\"RkZVJlhgSwLi\"));\n",
1669+
" //console.log(\"oaDUvKfOzObl\");\n",
1670+
" // console.log(document.getElementById(\"oaDUvKfOzObl\"));\n",
16711671
"\n",
16721672
" try_show();\n",
16731673
" }\n",

individual_modules/working_with_data_in_R/introducing_tidyverse.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
},
239239
{
240240
"cell_type": "code",
241-
"execution_count": 1,
241+
"execution_count": 4,
242242
"id": "c2af4997-464e-4c61-a5b4-1d695e53cd0a",
243243
"metadata": {
244244
"editable": true,
@@ -253,13 +253,13 @@
253253
{
254254
"data": {
255255
"text/html": [
256-
"<div id=\"rWKmnFiiOorR\" data-shufflequestions=\"False\"\n",
256+
"<div id=\"flhqtZbRlWfs\" data-shufflequestions=\"False\"\n",
257257
" data-shuffleanswers=\"True\"\n",
258258
" data-preserveresponses=\"false\"\n",
259259
" data-numquestions=\"1000000\"\n",
260260
" data-maxwidth=\"600\"\n",
261261
" style=\"border-radius: 10px; text-align: left\"> <style>\n",
262-
"#rWKmnFiiOorR {\n",
262+
"#flhqtZbRlWfs {\n",
263263
" --jq-multiple-choice-bg: #6f78ffff;\n",
264264
" --jq-mc-button-bg: #fafafa;\n",
265265
" --jq-mc-button-border: #e0e0e0e0;\n",
@@ -441,7 +441,7 @@
441441
{
442442
"data": {
443443
"application/javascript": [
444-
"var questionsrWKmnFiiOorR=[\n",
444+
"var questionsflhqtZbRlWfs=[\n",
445445
" {\n",
446446
" \"question\": \"What is the Tidyverse?\",\n",
447447
" \"type\": \"many_choice\",\n",
@@ -1269,8 +1269,8 @@
12691269
" Someone more knowledgeable could make this better ;-) */\n",
12701270
"\n",
12711271
" function try_show() {\n",
1272-
" if(document.getElementById(\"rWKmnFiiOorR\")) {\n",
1273-
" show_questions(questionsrWKmnFiiOorR, rWKmnFiiOorR); \n",
1272+
" if(document.getElementById(\"flhqtZbRlWfs\")) {\n",
1273+
" show_questions(questionsflhqtZbRlWfs, flhqtZbRlWfs); \n",
12741274
" } else {\n",
12751275
" setTimeout(try_show, 200);\n",
12761276
" }\n",
@@ -1279,8 +1279,8 @@
12791279
" {\n",
12801280
" // console.log(element);\n",
12811281
"\n",
1282-
" //console.log(\"rWKmnFiiOorR\");\n",
1283-
" // console.log(document.getElementById(\"rWKmnFiiOorR\"));\n",
1282+
" //console.log(\"flhqtZbRlWfs\");\n",
1283+
" // console.log(document.getElementById(\"flhqtZbRlWfs\"));\n",
12841284
"\n",
12851285
" try_show();\n",
12861286
" }\n",

individual_modules/working_with_data_in_R/loading_data.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
},
311311
{
312312
"cell_type": "code",
313-
"execution_count": 2,
313+
"execution_count": 5,
314314
"id": "b63a7078-19b4-4f8a-913b-2a4b698c7ef1",
315315
"metadata": {
316316
"editable": true,
@@ -325,13 +325,13 @@
325325
{
326326
"data": {
327327
"text/html": [
328-
"<div id=\"pOEYmbaqhbes\" data-shufflequestions=\"False\"\n",
328+
"<div id=\"UtTrWxiwZZwZ\" data-shufflequestions=\"False\"\n",
329329
" data-shuffleanswers=\"True\"\n",
330330
" data-preserveresponses=\"false\"\n",
331331
" data-numquestions=\"1000000\"\n",
332332
" data-maxwidth=\"600\"\n",
333333
" style=\"border-radius: 10px; text-align: left\"> <style>\n",
334-
"#pOEYmbaqhbes {\n",
334+
"#UtTrWxiwZZwZ {\n",
335335
" --jq-multiple-choice-bg: #6f78ffff;\n",
336336
" --jq-mc-button-bg: #fafafa;\n",
337337
" --jq-mc-button-border: #e0e0e0e0;\n",
@@ -513,7 +513,7 @@
513513
{
514514
"data": {
515515
"application/javascript": [
516-
"var questionspOEYmbaqhbes=[\n",
516+
"var questionsUtTrWxiwZZwZ=[\n",
517517
" {\n",
518518
" \"question\": \"Which function is used to read CSV files into R using the `readr` package?\",\n",
519519
" \"type\": \"many_choice\",\n",
@@ -1341,8 +1341,8 @@
13411341
" Someone more knowledgeable could make this better ;-) */\n",
13421342
"\n",
13431343
" function try_show() {\n",
1344-
" if(document.getElementById(\"pOEYmbaqhbes\")) {\n",
1345-
" show_questions(questionspOEYmbaqhbes, pOEYmbaqhbes); \n",
1344+
" if(document.getElementById(\"UtTrWxiwZZwZ\")) {\n",
1345+
" show_questions(questionsUtTrWxiwZZwZ, UtTrWxiwZZwZ); \n",
13461346
" } else {\n",
13471347
" setTimeout(try_show, 200);\n",
13481348
" }\n",
@@ -1351,8 +1351,8 @@
13511351
" {\n",
13521352
" // console.log(element);\n",
13531353
"\n",
1354-
" //console.log(\"pOEYmbaqhbes\");\n",
1355-
" // console.log(document.getElementById(\"pOEYmbaqhbes\"));\n",
1354+
" //console.log(\"UtTrWxiwZZwZ\");\n",
1355+
" // console.log(document.getElementById(\"UtTrWxiwZZwZ\"));\n",
13561356
"\n",
13571357
" try_show();\n",
13581358
" }\n",

0 commit comments

Comments
 (0)