Check out example codes for "r count number of na". It will help you in understanding the concepts better.

Code Example 1

sum(is.na(df))

Learn ReactJs, React Native from akashmittal.com