print.AlphaPart: print.AlphaPart.R

Description Usage Arguments Details See Also Examples

Description

Print method for the output of AlphaPart function.

Usage

1
2
## S3 method for class 'AlphaPart'
print(x, n = 6, ...)

Arguments

x

AlphaPart, output object from AlphaPart function.

n

Integer, number of the first and last rows in x to print out using head and tail.

...

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

Details

Partitioning of breeding values if often performed on quite large datasets, which quickly fills in the whole screen. Print method therefore prints out paths, number of individuals and the first and the last few lines for each trait to quickly see what kind of data is in x.

See Also

AlphaPart, head, tail.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Small pedigree with additive genetic (=breeding) values
ped <- data.frame(  id=c(  1,   2,   3,   4,   5,   6),
                   fid=c(  0,   0,   2,   0,   4,   0),
                   mid=c(  0,   0,   1,   0,   3,   3),
                   loc=c("A", "B", "A", "B", "A", "A"),
                   gen=c(  1,   1,   2,   2,   3,   3),
                  trt1=c(100, 120, 115, 130, 125, 125),
                  trt2=c(100, 110, 105, 100,  85, 110))

## Partition additive genetic values
tmp <- AlphaPart(x=ped, colBV=c("trt1", "trt2"))
print(tmp)

## Summarize by generation
summary(tmp, by="gen")


## There are also two demos
demo(topic="AlphaPart_deterministic", package="AlphaPart", ask=interactive())
demo(topic="AlphaPart_stochastic",     package="AlphaPart", ask=interactive())

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