na_omit_selection {eatTools} | R Documentation |
Drop rows containing missing values
Description
Drop rows containing missing values in selected columns.
Usage
na_omit_selection (dat, varsToOmitIfNA)
Arguments
dat |
a data.frame |
varsToOmitIfNA |
Name or column number of the variables which should be considered for row deletion due to NAs |
Value
A data.frame with deleted rows
Examples
dat1 <- data.frame ( v1 = c(1,NA,3), v2 = c(letters[1:2],NA),
v3 = c(NA, NA, TRUE), stringsAsFactors = FALSE)
na.omit(dat1)
na_omit_selection(dat1, "v2")
[Package eatTools version 0.7.6 Index]