Adds the admiral_df class to a data frame (unless it is already
present), preserving the existing classes such as tbl_df/data.frame.
This is the tagging primitive that admiral's derive_*() and related
dataset-producing functions apply to their output, so that a dataset
built with admiral can be recognized as such downstream (e.g. by a
future dedicated summary() method).
Value
If dataset is NULL, NULL is returned unchanged. Otherwise
dataset with "admiral_df" prepended to its class attribute.
See also
Utilities used within Derivation functions:
extract_unit(),
get_flagged_records(),
get_not_mapped(),
get_vars_query()
