Description Usage Arguments Value Examples
Tabel To Expand Data Frame
1 2 3 4 5 6 7 8 | TabelToExpandDataFrame(
data,
id.vars,
value = "value",
na.strings = "NA",
as.is = FALSE,
dec = "."
)
|
data |
|
id.vars |
|
value |
|
na.strings |
|
as.is |
|
dec |
data.frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | dat <- TabelToExpandDataFrame("
sex treatment neg pos
f KG 3 3
f UG 4 5
m KG 5 4
m UG 4 2
",
id.vars = 1:2,
value = "befund")
xdat <- xtabs( ~ befund + sex + treatment, dat)
Wide(as.data.frame(xdat),
befund ,
Freq)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.