R: Converts sparseMatrix to asreml's giv format

sm2asreml {MCMCglmm} | R Documentation

## 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)

### Arguments

`A` | sparseMatrix
`rownames` | rownames of A

### Value

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

### Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

### See Also

inverseA

### Examples

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

[Package MCMCglmm version 2.30 Index]