Suppressing warnings
A warning tells the user that something has gone potentially wrong. Let's highlight a good use of the warning function.
Este ejercicio forma parte del curso
Defensive R Programming
Ejercicio interactivo práctico
Prueba este ejercicio completando el código de muestra.
# Create new variable
x <- c(___, ___, ___)
y <- 1:3
# Correlation coefficient of x & y
m <- cor(___, ___)