Feat: add transform()
function to produce tables with age-wise rows and year-wise columns
#6
Labels
transform()
function to produce tables with age-wise rows and year-wise columns
#6
When dealing with mortality data, it is typical to 'square' it into an$n\times m$ matrix, where entries $m(x,t)$ correspond to the mortality rate for a life aged $x$ in cohort/year $t$ .
A function like
transform()
&transform!()
could take in mortality date and apply this transformation. Where there are multiple representations of the mortality data (e.g. males, females, total), aDict
could be returned withDataFrame
objects as values, sot["Males"]
returns aDataFrame
of transformed Male rates. Similarly, a customstruct
could work.The text was updated successfully, but these errors were encountered: