View source: R/generatePairings.R
generatePairings | R Documentation |
Generate a list of sex-consistent pairings for each victim in a DVI problem.
By default, the empty pairing (denoted *
) is included for each victim.
generatePairings(dvi, includeEmpty = TRUE, ignoreSex = FALSE)
dvi |
A |
includeEmpty |
A logical. If TRUE (default), the do-nothing symbol ( |
ignoreSex |
A logical. |
A list of character vectors. Each vector is a subset of missing
,
plus the character *
denoting no pairing.
jointDVI()
pm = singletons(c("V1", "V2"), sex = 1:2)
missing = paste0("M", 1:4)
am = list(nuclearPed(children = missing[1:3]),
nuclearPed(children = missing[4], sex = 2))
dvi = dviData(pm, am, missing)
generatePairings(dvi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.