Working with missing values
R stores missing values as NA
, which have some special behavior. Now that you can define missing data and understand how R stores missing values, can you predict what will happen when we operate with some missing values?
What is the output of the following four commands in R? Try them out in the code console to test them before you submit your answer.
1 + NA
NA + NA
NA | TRUE
NA | FALSE
This exercise is part of the course
Dealing With Missing Data in R
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
