EVOLUTION-MANAGER
Edit File: drop_na.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Drop rows containing missing values</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for drop_na {tidyr}"><tr><td>drop_na {tidyr}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Drop rows containing missing values</h2> <h3>Description</h3> <p>Drop rows containing missing values </p> <h3>Usage</h3> <pre> drop_na(data, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>data</code></td> <td> <p>A data frame.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p><<code><a href="tidyr_tidy_select.html">tidy-select</a></code>> Columns to inspect for missing values.</p> </td></tr> </table> <h3>Examples</h3> <pre> library(dplyr) df <- tibble(x = c(1, 2, NA), y = c("a", NA, "b")) df %>% drop_na() df %>% drop_na(x) vars <- "y" df %>% drop_na(x, any_of(vars)) </pre> <hr /><div style="text-align: center;">[Package <em>tidyr</em> version 1.1.2 <a href="00Index.html">Index</a>]</div> </body></html>