addcod {DDM} | R Documentation |
append a $cod
column if missing
Description
Only handles the case of missing $cod
splitting variable for data of a single year/region. This is not super robust. If you have many regions or whatever then do it yourself. This function was just written to make ggb()
robust to the case of a user specifying data that don't have any territorial or other subgroups, aside from sex.
Usage
addcod(X)
Arguments
X |
a |
Value
X with a new column, $cod
appended.
[Package DDM version 1.0-0 Index]