EVOLUTION-MANAGER
Edit File: compare_df_cols_same.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: Do the the data.frames have the same columns & types?</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 compare_df_cols_same {janitor}"><tr><td>compare_df_cols_same {janitor}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Do the the data.frames have the same columns & types?</h2> <h3>Description</h3> <p>Check whether a set of data.frames are row-bindable. Calls <code>compare_df_cols()</code>and returns TRUE if there are no mis-matching rows. ' </p> <h3>Usage</h3> <pre> compare_df_cols_same( ..., bind_method = c("bind_rows", "rbind"), verbose = TRUE ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>...</code></td> <td> <p>A combination of data.frames, tibbles, and lists of data.frames/tibbles. The values may optionally be named arguments; if named, the output column will be the name; if not named, the output column will be the data.frame name (see examples section).</p> </td></tr> <tr valign="top"><td><code>bind_method</code></td> <td> <p>What method of binding should be used to determine matches? With "bind_rows", columns missing from a data.frame would be considered a match (as in <code>dplyr::bind_rows()</code>; with "rbind", columns missing from a data.frame would be considered a mismatch (as in <code>base::rbind()</code>.</p> </td></tr> <tr valign="top"><td><code>verbose</code></td> <td> <p>Print the mismatching columns if binding will fail.</p> </td></tr> </table> <h3>Value</h3> <p><code>TRUE</code> if row binding will succeed or <code>FALSE</code> if it will fail. </p> <h3>See Also</h3> <p>Other Data frame type comparison: <code><a href="compare_df_cols.html">compare_df_cols</a>()</code>, <code><a href="describe_class.html">describe_class</a>()</code> </p> <h3>Examples</h3> <pre> compare_df_cols_same(data.frame(A=1), data.frame(A=2)) compare_df_cols_same(data.frame(A=1), data.frame(B=2)) compare_df_cols_same(data.frame(A=1), data.frame(B=2), verbose=FALSE) compare_df_cols_same(data.frame(A=1), data.frame(B=2), bind_method="rbind") </pre> <hr /><div style="text-align: center;">[Package <em>janitor</em> version 2.1.0 <a href="00Index.html">Index</a>]</div> </body></html>