drop_na.: Drop rows containing missing values

Description Usage Arguments Examples

View source: R/drop_na.R

Description

Drop rows containing missing values

Usage

1
drop_na.(.df, ...)

Arguments

.df

A data.frame or data.table

...

Optional: A selection of columns. If empty, all variables are selected. tidyselect compatible.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
df <- data.table(
  x = c(1,2,NA),
  y = c("a",NA,"b")
)

df %>%
  drop_na.()

df %>%
  drop_na.(x)

df %>%
  drop_na.(where(is.numeric))

mtfairbanks/gdt documentation built on May 4, 2021, 9:44 a.m.