Skip to content

Commit 2e6662a

Browse files
Merge pull request #115 from coding-for-reproducible-research/basic-editing
Making basic changes to the quiz files
2 parents 8753d85 + a92634c commit 2e6662a

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

where_is_my_understanding/quizes/intro_to_r.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
"feedback": "correct."
140140
},
141141
{
142-
"answer": "Shows the last few rows of a dataset.",
142+
"answer": "Shows only the column names of a dataset.",
143143
"correct": false,
144144
"feedback": "incorrect."
145145
},
@@ -177,7 +177,7 @@
177177
]
178178
},
179179
{
180-
"question": "Which package is primarily used for data manipulation in R?",
180+
"question": "Which tidyverse package is primarily used for data manipulation in R?",
181181
"type": "many_choice",
182182
"answers": [
183183
{
@@ -203,7 +203,7 @@
203203
]
204204
},
205205
{
206-
"question": "How cna you add a title to a plot in R?",
206+
"question": "How can you add a title to a plot in Base R?",
207207
"type": "many_choice",
208208
"answers": [
209209
{
@@ -233,12 +233,12 @@
233233
"type": "many_choice",
234234
"answers": [
235235
{
236-
"answer": "Separate data, scripts, and documents intro respetive folders.",
236+
"answer": "Separate data, scripts, and documents into respective folders.",
237237
"correct": true,
238238
"feedback": "correct."
239239
},
240240
{
241-
"answer": "Keep everything in one folder.",
241+
"answer": "Keep all files in one folder.",
242242
"correct": false,
243243
"feedback": "Incorrect."
244244
},

where_is_my_understanding/quizes/regression_analysis_with_R.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"feedback": "Incorrect."
1010
},
1111
{
12-
"answer": "Predicition",
12+
"answer": "Making predictions",
1313
"correct": true,
1414
"feedback": "Correct."
1515
},
@@ -30,22 +30,22 @@
3030
"type": "many_choice",
3131
"answers": [
3232
{
33-
"answer": "One indepdent variable and one dependent variable",
33+
"answer": "One independent variable and one dependent variable",
3434
"correct": true,
3535
"feedback": "Correct."
3636
},
3737
{
38-
"answer": "Two indepdent variables and one dependent variable",
38+
"answer": "Two independent variables and one dependent variable",
3939
"correct": false,
4040
"feedback": "Incorrect."
4141
},
4242
{
43-
"answer": "One indepdent variable and two dependent variables",
43+
"answer": "One independent variable and two dependent variables",
4444
"correct": false,
4545
"feedback": "Incorrect."
4646
},
4747
{
48-
"answer": "Two indepdent variables and two dependent variables",
48+
"answer": "Two independent variables and two dependent variables",
4949
"correct": false,
5050
"feedback": "Incorrect."
5151
}

where_is_my_understanding/quizes/working_with_data_in_r.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
]
7979
},
8080
{
81-
"question": "How would you filter out rows where the colun `sex` has missing data in `dplyr`?",
81+
"question": "How would you use 'dplyr' to remove rows where the column `sex` has missing data?",
8282
"type": "many_choice",
8383
"answers": [
8484
{
@@ -104,26 +104,26 @@
104104
]
105105
},
106106
{
107-
"question": "How would you extract data for Gentoo penguins with weight between 4.8kg and 5.2kg (inclusive) using `dplyr?`",
107+
"question": "How would you use `dplyr` to extract data for Gentoo penguins with weight between 4.8kg and 5.2kg (inclusive)?",
108108
"type": "many_choice",
109109
"answers": [
110110
{
111-
"answer": "`dplyr::filter(penguins, species == 'Gentoo', 4800 <= body_mass_g & body_mass_g <= 5200)`",
111+
"answer": "`dplyr::filter(penguins, species == 'Gentoo', body_mass_g >= 4800 & body_mass_g <= 5200)`",
112112
"correct": true,
113113
"feedback": "correct."
114114
},
115115
{
116-
"answer": "`dplyr::filter(penguins, species == 'Gentoo', 4.8 <= body_mass_kg & body_mass_kg <= 5.2)`",
116+
"answer": "`dplyr::filter(penguins, species == 'Gentoo', body_mass_g >= 4800 && body_mass_g <= 5200)`",
117117
"correct": false,
118118
"feedback": "incorrect."
119119
},
120120
{
121-
"answer": "`dplyr::filter(penguins, species == 'Gentoo', 4.8 <= body_mass_g & body_mass_g <= 5.2)`",
121+
"answer": "`dplyr::filter(penguins$Gentoo, body_mass_g >= 4800 & body_mass_g <= 5200)`",
122122
"correct": false,
123123
"feedback": "incorrect."
124124
},
125125
{
126-
"answer": "`dplyr::filter(penguins, species == 'Gentoo', 480 <= body_mass_g & body_mass_g <= 520)`",
126+
"answer": "`dplyr::filter(penguins, species == 'Gentoo', body_mass_g > 4800 & body_mass_g < 5200)`",
127127
"correct": false,
128128
"feedback": "incorrect."
129129
}
@@ -182,7 +182,7 @@
182182
]
183183
},
184184
{
185-
"question": "How can you transform a column to the interger type?",
185+
"question": "How can you transform a column to the integer type?",
186186
"type": "many_choice",
187187
"answers": [
188188
{
@@ -208,13 +208,13 @@
208208
]
209209
},
210210
{
211-
"question": "Which function is commonly used to reac a CSV file in R?",
211+
"question": "Which function is commonly used to read a CSV file in R?",
212212
"type": "many_choice",
213213
"answers": [
214214
{
215215
"answer": "`read.csv()`",
216216
"correct": false,
217-
"feedback": "incorrect."
217+
"feedback": "correct."
218218
},
219219
{
220220
"answer": "`read.table()`",
@@ -229,7 +229,7 @@
229229
{
230230
"answer": "`readr::read_csv()`",
231231
"correct": false,
232-
"feedback": "incorrect."
232+
"feedback": "correct."
233233
}
234234
]
235235
},
@@ -238,24 +238,24 @@
238238
"type": "many_choice",
239239
"answers": [
240240
{
241-
"answer": "`nrow(filter(penguins_subset, sex == 'male'))`",
241+
"answer": "`nrow(filter(penguins_subset, 'sex' == male))`",
242242
"correct": true,
243-
"feedback": "correct."
243+
"feedback": "incorrect."
244244
},
245245
{
246246
"answer": "`length(filter(penguins_subset, sex == 'male'))`",
247247
"correct": false,
248248
"feedback": "incorrect."
249249
},
250250
{
251-
"answer": "`nrow(filter(penguins_subset, gender == 'male'))`",
251+
"answer": "`count(filter(penguins_subset, sex == 'male'))`",
252252
"correct": false,
253-
"feedback": "incorrect."
253+
"feedback": "correct."
254254
},
255255
{
256-
"answer": "`length(filter(penguins_subset, gender == 'male'))`",
256+
"answer": "`nrow(filter(penguins_subset, sex == 'male'))`",
257257
"correct": false,
258-
"feedback": "incorrect."
258+
"feedback": "correct."
259259
}
260260
]
261261
},

0 commit comments

Comments
 (0)