New columns are generated for each code, containing their roots / parents If columns is not specified, adds parents to each codebook column
1 | amcat.add.parents(conn, codes, fields, columns = NULL, maxdepth = 1)
|
conn |
the connection object from |
codes |
a data frame of codes, e.g. from |
fields |
the coding field specifications, e.g. from |
columns |
a character vector containing the column names to add parents to |
maxdepth |
how many parent columns to add for each column, e.g. maxdepth=1 gives roots only |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.