Skip to contents

Summarize the age-to-age factors resulting from a call to the ata function.

Usage

# S3 method for class 'ata'
summary(object, digits=3, ...)

Arguments

object

object resulting from a call to ata

digits

integer indicating the number of decimal places for rounding the factors. The default is 3. NULL indicates that rounding should take place.

...

not used

Details

A call to ata produces a matrix of age-to-age factors with two attributes – the simple and volume weighted averages. summary.ata creates a new matrix with the averages appended as rows at the bottom.

Value

A matrix.

Author

Dan Murphy

See also

See also ata and print.ata

Examples

y <- ata(RAA)
summary(y, digits=4)
#>       dev
#> origin     1-2    2-3    3-4    4-5    5-6    6-7    7-8    8-9   9-10
#>   1981  1.6498 1.3190 1.0823 1.1469 1.1951 1.1130 1.0333 1.0029 1.0092
#>   1982 40.4245 1.2593 1.9766 1.2921 1.1318 0.9934 1.0434 1.0331     NA
#>   1983  2.6370 1.5428 1.1635 1.1607 1.1857 1.0292 1.0264     NA     NA
#>   1984  2.0433 1.3644 1.3489 1.1015 1.1135 1.0377     NA     NA     NA
#>   1985  8.7592 1.6556 1.3999 1.1708 1.0087     NA     NA     NA     NA
#>   1986  4.2597 1.8157 1.1054 1.2255     NA     NA     NA     NA     NA
#>   1987  7.2172 2.7229 1.1250     NA     NA     NA     NA     NA     NA
#>   1988  5.1421 1.8874     NA     NA     NA     NA     NA     NA     NA
#>   1989  1.7220     NA     NA     NA     NA     NA     NA     NA     NA
#>   smpl  8.2061 1.6959 1.3145 1.1829 1.1270 1.0433 1.0344 1.0180 1.0092
#>   vwtd  2.9994 1.6235 1.2709 1.1717 1.1134 1.0419 1.0333 1.0169 1.0092