Back to Course

R for Busy People (Cohort-0)

0% Complete
0/0 Steps
  1. Installing R and RStudio
    1 Lesson
    |
    2 Quizzes
  2. The RStudio IDE
    1 Lesson
    |
    2 Quizzes
  3. Coding Basics
    1 Lesson
    |
    2 Quizzes
  4. Assignment | Workshop 1
    1 Quiz
  5. Data dive: Ebola in Sierra Leone
    1 Lesson
    |
    2 Quizzes
  6. RStudio Projects
    1 Lesson
    |
    2 Quizzes
  7. Workshop 2
    1 Lesson
    |
    1 Quiz
  8. Using R Markdown
    1 Lesson
    |
    2 Quizzes
  9. Data classes & structures (deprec)
    2 Lessons
  10. Workshop 3
    1 Lesson
    |
    1 Quiz
  11. Select & rename
    1 Lesson
    |
    3 Quizzes
  12. Filter
    1 Lesson
    |
    3 Quizzes
  13. Workshop 4
    1 Quiz
  14. Mutate
    1 Lesson
    |
    3 Quizzes
  15. Workshop 5
    1 Lesson
    |
    1 Quiz
  16. Conditional mutate
    1 Lesson
    |
    3 Quizzes
  17. Group by and summarize
    1 Lesson
    |
    2 Quizzes
  18. Workshop 6
    1 Lesson
    |
    1 Quiz
  19. Other grouped operations
    1 Lesson
    |
    2 Quizzes
  20. Workshop 7
    1 Lesson
    |
    1 Quiz
  21. Intro to ggplot2
    1 Lesson
    |
    2 Quizzes
  22. Scatter plots and smoothing
    1 Lesson
    |
    2 Quizzes
  23. Workshop 8
    1 Lesson
    |
    1 Quiz
  24. Lines, scales, and labels
    1 Lesson
    |
    2 Quizzes
  25. Overview of the EpiGraphHub web platform
  26. Data exploration on EpiGraphHub
    1 Quiz
  27. Workshop 9
    1 Lesson
    |
    1 Quiz
  28. Workshop 10
    1 Lesson
    |
    1 Quiz
  29. Final project
    1 Lesson
    |
    1 Quiz
  30. Getting help
    1 Lesson
    |
    1 Quiz
  31. Quiz contributions
    16 Lessons
Topic 3, Lesson 1
In Progress

Lesson | Coding Basics

Topic Progress
0% Complete

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.

Subscribe
Notify of
guest

3 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Vanessa

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

Jay

I think the long video is balanced with great transitions and a good narration! I find it quite easy to follow it without breaks.

Thomas

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

3
0
Questions or comments?x