Retrieves the "dep_label_prefix" attribute that saros attaches to every
object returned by makeme() / make_content.*(). This is the main
question text — the shared label prefix of all dependent variables used to
produce the object.
Arguments
- obj
Any object returned by
makeme()or amake_content.*()method (ggplot, data.frame, mschart, …).
Details
Storage location by class:
ggplot / gg and ms_barchart: attribute is stored on
obj$data(whenobj$datais a data.frame) so that it survives further+operations. This function reads fromobj$datafirst for both classes.data.frame and other objects: attribute stored directly on
obj.
Examples
p <- makeme(data = ex_survey, dep = b_1:b_3)
get_dep_label_prefix(p)
#> [1] "How much do you like living in"