Corrected bug for complete cases adding na.omit

Bug: function results were not correlating with published answers.

Noticed that the function did not take into account problem requirement
that it should report only "complete cases". Using na.omit() to achieve
that.

Have run this on expected output and it works finr