9  Lecture: R: factors, subscripting

9.1 R: factors, subscripting lecture

Here’s a recording of this lecture (43 minutes 25 seconds):

Recording

9.2 R: factors, subscripting slides

PDF slide set

9.3 Questions

9.3.1 Question 1

Which of the following statements about factors in R is correct?

9.3.2 Question 2

Which of the following R code snippets correctly demonstrates valid methods for subsetting data?

9.3.3 Question 3

Which of the following R code snippets best illustrates how NA values can interfere with subsetting, where x is c(1, 6, NA, 8)?