This lesson can be followed by watching the lesson video below, or reading through the lesson manuscript further down. Choose whichever mode works best for you!
Lesson video
Reveal practice question answers
1. True.
2. The division sign is evaluated first.
3. The answer is C. The code 2+2+2 gets evaluated before it is stored in the object.
4a. The value is 1. The code evaluates to 9-8
4b. table(ebola_data$district)
5a. You cannot add two character strings. Adding only works for numbers.
5b. my_1st_name
is typed with the number 1 initially, but in the paste()
command, it is typed with the letter “I”.
6. The third line is the only line with a valid object name: top_20_rows
7. The last line, head(6,women), is invalid because the arguments are in the wrong order and they are not named.
8. The third code chunk has a problem. It attempts to find the square root of a character, which is impossible.
9. The first line, A, is the correct interpretation.
10. The first code chunk is the recommended way to install and load the package {janitor}
Lesson notes
The written guide below is an accompaniment to the lesson video. You may read through it if you prefer written tutorials to video content.
This lesson is concise and clear. Thank you @Kene.
Hopefully, I can remember most of the codes with the great guidance and the 10 quiz questions
I think the long video is balanced with great transitions and a good narration! I find it quite easy to follow it without breaks.
The lesson took quite a while but phew!, finally done with much insight and comprehension on R basics. Thank you so much for the thorough guidance