Description Usage Arguments Value Author(s) Examples
creates K tables from a data frame.
1 2 3 |
df |
a data frame |
blocks |
an integer vector for which the sum must be the number of variables of df. Its length is the number of arrays of the K-tables |
rownames |
the row names of the K-tables (otherwise the row names of df) |
colnames |
the column names of the K-tables (otherwise the column names of df) |
tabnames |
the names of the arrays of the K-tables (otherwise "Ana1", "Ana2", ...) |
w.row |
a vector of the row weightings |
w.col |
a vector of the column weightings |
returns a list of class ktab
. See ktab
.
Daniel Chessel
Anne B Dufour anne-beatrice.dufour@univ-lyon1.fr
1 2 3 4 5 6 7 8 9 | data(escopage)
wescopage <- data.frame(scalewt(escopage$tab))
wescopage <- ktab.data.frame(wescopage, escopage$blo,
tabnames = escopage$tab.names)
plot(sepan(wescopage))
data(friday87)
w <- data.frame(scale(friday87$fau, scal = FALSE))
w <- ktab.data.frame(w, friday87$fau.blo, tabnames = friday87$tab.names)
kplot(sepan(w))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.