na_omit_selection: Drop rows containing missing values

na_omit_selectionR 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")

eatTools documentation built on May 29, 2024, 6:03 a.m.