expandIntervals {dembase} | R Documentation

## Split wide intervals into narrower ones

### Description

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

### Usage

    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.

[Package dembase version 0.0.0.119 Index]