Example of handling missing values in a vector (NAs)
Added examples of how not to index into a data frame, what errors can occur.