LoslegenKostenlos loslegen

Let's be evil

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

Diese Übung ist Teil des Kurses

Defensive R Programming

Kurs anzeigen

Anleitung zur Übung

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

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Define F to be interpreted as TRUE
F > ___

# Read in data: don't alter the line below
data_set <- read.csv("iris.csv", header = F)
Code bearbeiten und ausführen