magic.rearrange: Rearrange the founder combinations.

View source: R/magic_rearrange.R

magic.rearrangeR Documentation

Rearrange the founder combinations.

Description

This function rearranges a matrix of founder combinations such that smaller founder appears before larger founder in any cross (e.g. 3124 becomes 1324).

Usage

magic.rearrange(fmat)

Arguments

fmat

matrix of founder combinations.

Value

a rearranged matrix of founder combinations.

Examples


mpop <- t(sapply(1:3, FUN=function(x) sample(1:8, 8)))
mpop <- magic.rearrange(fmat=mpop)



cjyang-sruc/magicdesign documentation built on March 19, 2022, 9:34 a.m.