limits: First and last categories used by each dimension.

Description Usage Arguments Value Examples

Description

Gives the first and last categories used by each dimension of a DemographicArray object or a DemographicAccount. It provides a quick way of understanding the structure of an object.

Usage

1
2
3
4
5
6
7
limits(object, components = FALSE)

## S4 method for signature 'DemographicArray'
limits(object, components = FALSE)

## S4 method for signature 'MetaData'
limits(object)

Arguments

object

An object of class DemographicArray or DemographicAccount.

components

Logical. Only used if object is a DemographicAccount. If TRUE then limits are shown for all demographic series; if FALSE (the default) limits are shown only for population.

Value

If object is a DemographicArray, or if object is a DemographicAccount and components is FALSE, then the return value is a data.frame; otherwise it is a list of data.frames.

Examples

1
2
3
library(demdata)
popn <- Counts(VAPopn)
limits(popn)

StatisticsNZ/dembase documentation built on Dec. 25, 2021, 4:49 p.m.