Description Usage Arguments Value Author(s) Examples
This internal function converts a matrix with lots of individual PY contributions and starting ages and years as rows, into a population-level PY histrogram matrix of (1-year age)x(1-year year) resolution bins. The output matrix is more square-like (currently at 40 calendar years by 126 age years) than the tall dataframe-like input matrix.
1 | fillPYM(PYin,PYM)
|
PYin |
Tall input matrix where rows hold individual PY at risk, year and starting (left) ages ageL. |
PYM |
Output PY matrix with age and calendar year rows and columns at single year resolution. |
The second argument becomes the output. This matrix should be filled with zeros in R before calling this function. After the call, it will be filled; this function uses pointers in Rcpp C++ code.
Tom Radivoyevitch (radivot@ccf.org)
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.