1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to R

Connected

Exercise

Advanced selection

Just like you did for poker, you also want to know those days where you realized a positive return for roulette.

Instructions

100 XP
  • Create the variable selection_vector, this time to see if you made profit with roulette for different days.
  • Assign the amounts that you made on the days that you ended positively for roulette to the variable roulette_winning_days. This vector thus contains the positive winnings of roulette_vector.