Description Usage Arguments Details Value
Adds one or more categories to codebook codes. Suppose that you have a hierarchy like
1 | amcat.hierarchy.cats(hierarchy, maxdepth = 2)
|
hierarchy |
the hierarchy data frame from |
maxdepth |
the maxium number of ancestors per code |
code, parent issue, NA economy, issue unemployment, economy environment, issue
The first category or 'root' for all objects will be 'issue'. The second category would be 'economy' for economy and unemployment, and 'environment' for environment. For 'issue', the second category would simply be issue:
code, parent, cat1, cat2 issue, NA, issue, issue economy, issue, issue, economy unemployment, economy, issue, economy environment, issue, issue, environment #'
The hierarchy data frame with a column added for each code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.