limits: Get first and last labelsl used by each dimension.

Description Usage Arguments Value Examples

Description

Get the first and last categories used by each dimension of an array or demographic account. These categories can be useful in understanding the structure of the array or account. When used with an account, limits returns the values for the population series.

Usage

1
2
3
4
limits(x)

## S4 method for signature 'array'
limits(x)

Arguments

x

An object of class array, DemographicArray, or a demographic account.

Value

A data frame.

Examples

1
2
3
4
5
6
x <- Counts(array(1:8,
                  dim = c(2, 4),
                  dimnames = list(sex = c("Female", "Male"),
                                  age = c("0-14", "15-39", "40-64", "65+"))))
x
limits(x)

johnrbryant/demarray documentation built on Dec. 31, 2021, 11:57 a.m.