Learn R Programming

AlphaPart (version 0.7.0)

print.summaryAlphaPart: print.summaryAlphaPart.R

Description

Print method for objects of the class summaryAlphaPart.

Usage

# S3 method for 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

Run this code
# NOT RUN {
## Load an example data
data("AlphaPart.ped")

## --- Partition additive genetic values by loc ---
(res <- AlphaPart(x=AlphaPart.ped, colPath="loc", colAGV=c("agv1", "agv2")))

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

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

## Summarize population by generation (=trend) and location 1
(ret <- summary(res, by="loc.gen"))

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

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

AlphaPart.ped$loc.sex <- with(AlphaPart.ped, paste(loc, sex, sep="-"))
(res <- AlphaPart(x=AlphaPart.ped, colPath="loc.sex", colAGV=c("agv1", "agv2")))

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

## Summarize population by generation (=trend) and location 1
(ret <- summary(res, by="loc.gen"))

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

Run the code above in your browser using DataLab