Arguments
doc
ManifestoDocument, ManifestoCorpus or vector of codes
code_layers
vector of names of code layers to use, defaults to cmp_code; Caution:
The layer eu_code is handled separately in the parameter with_eu_codes due to its
different logic
with_eu_codes
Whether to include special EU code layer; by default ("auto") taken
from the document's metadata
prefix
prefix for naming the count/percentage columns in the resulting data.frame
relative
If true, percentages are returned, absolute counts else
include_codes
Vector of categories that should be included even if they are not
present in the data; the value of the created variables then defaults to 0.0 (or NA if
no codes are present at all);