print.summaryAlphaPart: print.summaryAlphaPart.R

Description Usage Arguments Details See Also Examples

View source: R/print.summaryAlphaPart.R

Description

Print method for objects of the class summaryAlphaPart.

Usage

1
2
## S3 method for class 'summaryAlphaPart'
print(x, ...)

Arguments

x

summaryAlphaPart, output object from summary.AlphaPart function.

...

Arguments passed to other functions (not used at the moment).

Details

Print method for objects of the class summaryAlphaPart (result of summary(AlphaPart(...))).

See Also

summary.AlphaPart

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## --- Partition additive genetic values by loc ---
res <- AlphaPart(x=AlphaPart.ped, colPath="country", colBV=c("bv1", "bv2"))

## Summarize whole population
ret <- summary(res)

## Summarize population by generation (=trend)
ret <- summary(res, by="gen")

## Summarize population by generation (=trend) but only for domestic location
ret <- summary(res, by="gen", subset=res[[1]]$country == "domestic")

## --- Partition additive genetic values by loc and gender ---

AlphaPart.ped$country.gender <- with(AlphaPart.ped, paste(country, gender, sep="-"))
res <- AlphaPart(x=AlphaPart.ped, colPath="country.gender", colBV=c("bv1", "bv2"))

## Summarize population by generation (=trend)
ret <- summary(res, by="gen")

## Summarize population by generation (=trend) but only for domestic location
ret <- summary(res, by="gen", subset=res[[1]]$country == "domestic")

AlphaPart documentation built on March 25, 2020, 5:13 p.m.