Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

drop_na..html

Drop rows containing missing values


Description

Drop rows containing missing values

Usage

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

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

tidytable

Tidy Interface to 'data.table'

v0.6.1
MIT + file LICENSE
Authors
Mark Fairbanks [aut, cre], Abdessabour Moutik [ctb], Matt Carlson [ctb], Ivan Leung [ctb], Ross Kennedy [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.