expandIntervals: Split wide intervals into narrower ones

Description Usage Arguments Details

Description

Split a dimension with dimscale "Intervals" into smaller units, and redistribute counts within these smaller units.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
expandIntervals(
  object,
  dimension,
  breaks = NULL,
  width = NULL,
  old = NULL,
  weights,
  means = FALSE
)

## S4 method for signature 'Counts,ANY,numeric,missing,missing,missing'
expandIntervals(
  object,
  dimension,
  breaks = NULL,
  width = NULL,
  old = NULL,
  weights,
  means = FALSE
)

## S4 method for signature 'Counts,ANY,missing,numeric,missing,missing'
expandIntervals(
  object,
  dimension,
  breaks = NULL,
  width = NULL,
  old = NULL,
  weights
)

Arguments

object

Object of class DemographicArray.

dimension

Name or index of the dimension where the intervals are found.

breaks

Numeric vector giving the breaks between intervals after the splitting has occurred.

width

The length of the intervals after the splitting has occurred.

old

The labels of the intervals to be split. NOT CURRENTLY USED.

weights

Object of class Counts. NOT CURRENTLY USED.

means

If FALSE (the default) the allocation is done randomly; if TRUE, values are set equal to their means.

Details

NOTE - THIS FUNCTION IS INCOMPLETE, AND WILL BE MODIFIED TO INCLUDE ADDITIONAL ARGUMENTS.


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