EVOLUTION-MANAGER
Edit File: get_dupes.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: Get rows of a 'data.frame' with identical values for the...</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 get_dupes {janitor}"><tr><td>get_dupes {janitor}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get rows of a <code>data.frame</code> with identical values for the specified variables.</h2> <h3>Description</h3> <p>For hunting duplicate records during data cleaning. Specify the data.frame and the variable combination to search for duplicates and get back the duplicated rows. </p> <h3>Usage</h3> <pre> get_dupes(dat, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>dat</code></td> <td> <p>The input data.frame.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Unquoted variable names to search for duplicates. This takes a tidyselect specification.</p> </td></tr> </table> <h3>Value</h3> <p>Returns a data.frame with the full records where the specified variables have duplicated values, as well as a variable <code>dupe_count</code> showing the number of rows sharing that combination of duplicated values. If the input data.frame was of class <code>tbl_df</code>, the output is as well. </p> <h3>Examples</h3> <pre> get_dupes(mtcars, mpg, hp) # or called with the magrittr pipe %>% : mtcars %>% get_dupes(wt) # You can use tidyselect helpers to specify variables: mtcars %>% get_dupes(-c(wt, qsec)) mtcars %>% get_dupes(starts_with("cy")) </pre> <hr /><div style="text-align: center;">[Package <em>janitor</em> version 2.1.0 <a href="00Index.html">Index</a>]</div> </body></html>