Learn R Programming

MCMCglmm (version 2.36)

sm2asreml: Converts sparseMatrix to asreml's giv format

Description

Converts sparseMatrix to asreml's giv format: row-ordered, upper triangle sparse matrix.

Usage

sm2asreml(A=NULL, rownames=NULL)

Value

data.frame: if A was formed from a pedigree equivalent to giv format returned by asreml.Ainverse

Arguments

A

sparseMatrix

rownames

rownames of A

Author

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

inverseA

Examples

Run this code
data(bird.families)
A<-inverseA(bird.families)
Aasreml<-sm2asreml(A$Ainv, A$node.names)

Run the code above in your browser using DataLab