| Start |
|---|
| Removing missing data from a vector First lets create a vector called Vector1: And add missing data to it: Now we can use the is.na function to subset the Vector Now the resulting vector will have removed the NAs of the original Vector1 |
| Removing incomplete rows There might be times where you have a data frame and you want to remove all the rows that might contain an NA value, for that the function complete.cases is the best option. We will use the first 6 rows of the airquality dataset to make an example since it already has NAs This has two rows with NAs in the Solar.R column, to remove them we do the following The resulting dataframe x_no_NA will only have complete rows without NAs |
Read Article
https://develop.horje.com/learn/1434/reference