CommencerCommencer gratuitement

Suppressing warnings

A warning tells the user that something has gone potentially wrong. Let's highlight a good use of the warning function.

Cet exercice fait partie du cours

Defensive R Programming

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Create new variable 
x <- c(___, ___, ___)
y <- 1:3

# Correlation coefficient of x & y
m <- cor(___, ___)
Modifier et exécuter le code