Description Usage Arguments Value Author(s) References See Also Examples
This function expands a data.frame
based on a column
(col.exp
). Useful for generating long tables from
contingency tables.
1 |
x |
a |
col.exp |
a character string of the column name or the column number to use for "expansion" |
na.strings |
passed to |
as.is |
passed to |
dec |
passed to |
DF a data.frame
of x
in "long" format.
Modified version of expand.dft
in the
kmmisc
package by Kevin Middleton which is based
on Marc Schwartz' version from the r-help mailing
list.
See
https://stat.ethz.ch/pipermail/r-help/2009-January/185561.html
for discussion of expand_df()
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.