1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Defensive R Programming

Connected

अभ्यास

Suppressing warnings

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

निर्देश 1/2

undefined XP
    1
    2
  • Create a variable x that is the value 1 repeated three times.
  • Calculate the correlation coefficient of x and y using the cor() function. Store the result in an object m.