Concept Flow - Handling missing values (na.rm, na.omit)
Start with vector/data
Check for missing values (NA)?
Yes
Use na.rm=TRUE
Calculate ignoring NA
Result without NA
End
Start with data that may have missing values (NA). You can either ignore NA in calculations using na.rm=TRUE or remove NA values completely with na.omit(). Both lead to results without missing values.