Learn R Programming

fastplyr (version 0.5.1)

remove_rows_if_any_na: Fast remove rows with NA values

Description

Fast remove rows with NA values

Usage

remove_rows_if_any_na(data, ..., .cols = NULL)

remove_rows_if_all_na(data, ..., .cols = NULL)

Value

A data frame with removed rows containing either any or all NA values.

Arguments

data

A data frame.

...

Cols to fill NA values specified through tidyselect notation. If left empty all cols are used by default.

.cols

(Optional) alternative to ... that accepts a named character vector or numeric vector. If speed is an expensive resource, it is recommended to use this.