names-methods: Get or set dimension names

Description Usage Arguments Value Author(s) See Also Examples

Description

Query or change the dimension names of a DemographicArray object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S4 method for signature 'DemographicAccount'
names(x)

## S4 method for signature 'DemographicArray'
names(x)

## S4 replacement method for signature 'DemographicArray'
names(x) <- value

## S4 method for signature 'MetaData'
names(x)

## S4 replacement method for signature 'MetaData'
names(x) <- value

Arguments

x

Object of class DemographicArray.

value

Character vector.

Value

A character vector. The replacement method returns an object of class DemographicArray.

Author(s)

John Bryant demographic.packages@gmail.com

See Also

As described in dimtypes, some dimensions must come in pairs, and there are special rules governing the names of these dimensions.

Examples

1
2
3
4
library(demdata)
popn <- Counts(VAPopn)
names(popn)
names(popn) <- toupper(names(popn))

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