mergelist {happy}R Documentation

Create an object descrbing how to merge strains together

Description

mergelist() is a convenience function which creates a list object suitable for use with mergematrices()

Usage

 mergelist( strains, alleles )

Arguments

strains a character vector of strain names
alleles a character matrix with one row of strain/allele combinations. There must be a named column in the matrix corresponding to every strain name in strains. The value of the element is the allele for that strain

Value

a list of lists of strains describing how the strains are grouped together. For instance mergelist <- list( A=list('AJ', 'BALB', 'AKR'), T=list('RIII','I', 'DBA', 'C57', 'C3H') ) divides the strains into two groups corresponding to the alleles A, T (the allele names are not important). It is essential that the all strain names match all the values in strains.
The object should be used as an input parameter to mergematrices()

Author(s)

Richard Mott

See Also

mergematrices()


[Package happy version 2.1 Index]