Description Usage Arguments Details Value Author(s) Examples
Parses data.frames
of specific format to produce "Col" prefixed lists for CheckCollapse
1 | CollapseTableParser(CTable, env = .GlobalEnv)
|
CTable |
a data.frame with columns "Variable" (variable names), "Index" (column names), "Function" (function to collapse the columns), and "Probs" (probabilities of column levels in marginal distribution, comma separated. Used when function is "sample".) |
env |
target |
Used in the Opasnet assessments/analyses to produce multiple model specific Collapse instructions. Using other distribution values
than 1 requires knowledge about the amount and order of unique index values. Probs
values 1
and NA
are considered equal weighting.
See also: http://en.opasnet.org/
No return value, "Col" prefixed variables are written straight into specified environment
.
T. Rintala teemu.rintala.a@gmail.com
1 2 3 | a <- data.frame(Variable = "test", Index = c("City"), Probs = 1)
CollapseTableParser(a)
Coltest
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.