c.factor.html 1.52 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Combine factors, properly handling levels</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>

<table width="100%" summary="page for c.factor {gdata}"><tr><td>c.factor {gdata}</td><td align="right">R Documentation</td></tr></table>
<h2>Combine factors, properly handling levels</h2>


<h3>Description</h3>

<p>
This method for <code>c</code> combines factors while properly preserves level
information.
</p>


<h3>Usage</h3>

<pre>
c.factor(..., recursive = FALSE)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>...</code></td>
<td>
factors to be combined </td></tr>
<tr valign="top"><td><code>recursive</code></td>
<td>
ignored </td></tr>
</table>

<h3>Details</h3>




<h3>Value</h3>

<p>
A single factor object.  The levels on the new object are created by
concatinating the levels of the provided factors, with any duplicate
level names merged, and with the factor coding modified appropriately.</p>

<h3>Author(s)</h3>

<p>
Gregor Gorjan
</p>


<h3>See Also</h3>

<p>
<code><a href="../../base/html/c.html">c</a></code>
</p>


<h3>Examples</h3>

<pre>
f1 &lt;- factor(letters[1:10])
f2 &lt;- factor(letters[5:14])

c(f1,f2)

</pre>



<hr><div align="center">[Package <em>gdata</em> version 2.3.1 <a href="00Index.html">Index]</a></div>

</body></html>