basesub: Base Pairwise Substitution

View source: R/basesub.R

basesubR Documentation

Base Pairwise Substitution

Description

Make a data set of all possible pairwise substitution of a composition which can be used as the base for substitution models.

Usage

basesub(parts)

Arguments

parts

A character vector specifying the names of compositional variables to be used.

Value

A data table of all possible pairwise substitution.

Examples

ps1 <- basesub(parts = c("TST", "WAKE", "MVPA", "LPA", "SB"))
print(ps1)

ps2 <- basesub(c("WAKE", "MVPA", "LPA", "SB"))
print(ps2)

florale/multilevelcoda documentation built on April 21, 2024, 9:44 a.m.