build.basesub | R Documentation |
Make a data set of all possible pairwise substitution of a composition which can be used as the base for substitution models.
build.basesub(parts, comparison = NULL)
parts |
A character vector specifying the names of compositional variables to be used. |
comparison |
Either |
A data table of all possible pairwise substitution.
ps1 <- build.basesub(parts = c("TST", "WAKE", "MVPA", "LPA", "SB"))
print(ps1)
ps2 <- build.basesub(c("WAKE", "MVPA", "LPA", "SB"), comparison = "one-to-all")
print(ps2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.