EVOLUTION-MANAGER
Edit File: unname.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: Remove 'names' or 'dimnames'</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 unname {base}"><tr><td>unname {base}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Remove <code>names</code> or <code>dimnames</code></h2> <h3>Description</h3> <p>Remove the <code><a href="names.html">names</a></code> or <code><a href="dimnames.html">dimnames</a></code> attribute of an <span style="font-family: Courier New, Courier; color: #666666;"><b>R</b></span> object. </p> <h3>Usage</h3> <pre> unname(obj, force = FALSE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>obj</code></td> <td> <p>an <span style="font-family: Courier New, Courier; color: #666666;"><b>R</b></span> object.</p> </td></tr> <tr valign="top"><td><code>force</code></td> <td> <p>logical; if true, the <code>dimnames</code> (names and row names) are removed even from <code><a href="data.frame.html">data.frame</a></code>s.</p> </td></tr> </table> <h3>Value</h3> <p>Object as <code>obj</code> but without <code><a href="names.html">names</a></code> or <code><a href="dimnames.html">dimnames</a></code>. </p> <h3>Examples</h3> <pre> require(graphics); require(stats) ## Answering a question on R-help (14 Oct 1999): col3 <- 750+ 100*rt(1500, df = 3) breaks <- factor(cut(col3, breaks = 360+5*(0:155))) z <- table(breaks) z[1:5] # The names are larger than the data ... barplot(unname(z), axes = FALSE) </pre> <hr /><div style="text-align: center;">[Package <em>base</em> version 3.6.0 <a href="00Index.html">Index</a>]</div> </body></html>