addcod | R Documentation |
$cod
column if missingOnly 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.
addcod(X)
X |
a |
X with a new column, $cod
appended.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.