drop_na.dtplyr_step | R Documentation |
This is a method for the tidyr drop_na()
generic. It is translated to
data.table::na.omit()
## S3 method for class 'dtplyr_step'
drop_na(data, ...)
data |
A |
... |
< |
library(dplyr)
library(tidyr)
dt <- lazy_dt(tibble(x = c(1, 2, NA), y = c("a", NA, "b")))
dt %>% drop_na()
dt %>% drop_na(x)
vars <- "y"
dt %>% drop_na(x, any_of(vars))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.