Check out example codes for "r remove na from dataset". It will help you in understanding the concepts better.

Code Example 1

new_df <- na.omit(df, c("myvar1", "myvar2")) # Remove NA on specific variables

Learn ReactJs, React Native from akashmittal.com