ageTimeStep {dembase} | R Documentation

## Get the age-time step used by a demographic array.

### Description

If a `object` has a `regular` age-time plan, then `ageTimeStep` returns the length of the age-time steps used; otherwise it raises an error.

### Usage

    ageTimeStep(object)

    ## S4 method for signature 'DemographicArray'
    ageTimeStep(object)

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

### Arguments

`object` | Object of class `DemographicArray`.

### Value

A number (i.e. a numeric vector of length 1).

### See Also

`hasRegularAgeTime`, `DemographicArray`, `dimtypes`, `dimscales`

### Examples

    library(demdata)
    x <- Counts(VAPopn)
    x
    hasRegularAgeTime(x)

[Package dembase version 0.0.0.119 Index]