EVOLUTION-MANAGER
Edit File: adorn_crosstab.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: Add presentation formatting to a crosstabulation table.</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 adorn_crosstab {janitor}"><tr><td>adorn_crosstab {janitor}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Add presentation formatting to a crosstabulation table.</h2> <h3>Description</h3> <p>This function is deprecated, use the <code>adorn_</code> family of functions instead. </p> <h3>Usage</h3> <pre> adorn_crosstab( dat, denom = "row", show_n = TRUE, digits = 1, show_totals = FALSE, rounding = "half to even" ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>dat</code></td> <td> <p>a data.frame with row names in the first column and numeric values in all other columns. Usually the piped-in result of a call to <code>crosstab</code> that included the argument <code>percent = "none"</code>.</p> </td></tr> <tr valign="top"><td><code>denom</code></td> <td> <p>the denominator to use for calculating percentages. One of "row", "col", or "all".</p> </td></tr> <tr valign="top"><td><code>show_n</code></td> <td> <p>should counts be displayed alongside the percentages?</p> </td></tr> <tr valign="top"><td><code>digits</code></td> <td> <p>how many digits should be displayed after the decimal point?</p> </td></tr> <tr valign="top"><td><code>show_totals</code></td> <td> <p>display a totals summary? Will be a row, column, or both depending on the value of <code>denom</code>.</p> </td></tr> <tr valign="top"><td><code>rounding</code></td> <td> <p>method to use for truncating percentages - either "half to even", the base R default method, or "half up", where 14.5 rounds up to 15.</p> </td></tr> </table> <h3>Value</h3> <p>Returns a data.frame. </p> <hr /><div style="text-align: center;">[Package <em>janitor</em> version 2.1.0 <a href="00Index.html">Index</a>]</div> </body></html>