limits {dembase}R Documentation

First and last categories used by each dimension.

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

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

library(demdata)
popn <- Counts(VAPopn)
limits(popn)

[Package dembase version 0.0.0.119 Index]