rbind.acs: Combine acs Objects by Rows or Columns

Description Usage Arguments Details Value Author(s)

View source: R/acs.R

Description

Take a pair of acs objects and combine by _c_olumns or _r_ows, respectively.

Usage

1
2
3
4
5
          ## S3 method for class 'acs'
rbind(e1, e2)
          ## S3 method for class 'acs'
cbind(e1, e2)
          

Arguments

e1, e2

two acs-class objects

Details

When passed two acs-class objects, rbind (and cbind) will first check to confirm whether the objects contain compatible data: same endyear and span; same column names (for rbind) or geography (for cbind). If not, it will issue a warning, but will still proceed.

After this check, the function will return a new acs object that has resulted from combining the two arguments row-wise or column-wise. The effect is essentially the same as rbind (or cbind) on the underlying estimate and standard.error matrices, with all the additional acs metadata tended to.

Value

Returns a single new acs object with all of the data contained in the two arguments.

Author(s)

Ezra Haber Glenn eglenn@mit.edu


nealrichardson/acs documentation built on May 23, 2019, 1:30 p.m.