1. Learn
  2. /
  3. Courses
  4. /
  5. Inferential Statistics

Exercise

Selection by comparison II

In the last exercise we saw larger_than_ten consisted of a vector of TRUE and FALSE. We make use of this logical vector to select elements from another vector. For instance, numeric_vector[c(TRUE, FALSE, TRUE)] will select the first and the third element from the vector numeric_vector.

Instructions

100 XP
  • Print the items from numeric_vector that are larger than 10