1. Learn
  2. /
  3. Courses
  4. /
  5. Defensive R Programming

Exercise

Let's be evil

This foolish R user is reading the iris data set and specified the header using the logical short-cut F.

Instructions

100 XP
  • Before the read.csv() code is run, redefine the variable F to be a positive numeric so that it is interpreted as TRUE