
Note: We can also use
which()function to extract exact indexes ofNAvalues.
We can also use is.na() to find the missing values in a dataframe and then replace them with new value.
Find missing values.
Replace missing values with other values.
Count the number of missing values.