View source: R/trans_na_removal.R
| na_removal | R Documentation |
Remove rows (or elements) that contain missing values.
na_removal()
For data frames or matrices, removes rows with any NA. For vectors, removes NA values.
returns an object of class na_removal
data(iris)
iris.na <- iris
iris.na$Sepal.Length[2] <- NA
obj <- na_removal()
iris.clean <- transform(obj, iris.na)
nrow(iris.clean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.