remove_na: Fast remove rows with 'NA' values

remove_rows_if_any_naR Documentation

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)

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.

Value

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


fastplyr documentation built on June 8, 2025, 11:18 a.m.