View source: R/dashboardElements.R
createExtendedDict | R Documentation |
This function creates an extend dictionary with the info needed for a dashboard matrix
createExtendedDict(
dict,
questions,
disag,
labels,
topic,
comments = NULL,
abbrev = NULL
)
dict |
dictionary from dictGenerator |
questions |
vector of variables (question identifiers) that should be kept from the dictionary |
disag |
vector of variables (question identifiers) that will be on the cols of the tableau matrices, the disaggregations |
labels |
labels for the disag variables |
topic |
vector of topics for each question |
comments |
(optional) vector of comment for each question, default NULL |
abbrev |
(optional) vector of abbreviated text for questions, default NULL |
extended dictionary
Gabriel N. Camargo-Toledo gcamargo@sensata.io
rawData <- sensataDataProg::sensataExample
Dict <- dictGenerator(
df = rawData,
questionPrefix = "",
forceOrdered = "q_AB_NI_01")
questions <- c("q_AB_NI_01", "q_AB_EA_07", "q_AB_RA_01")
disag <- c("q_AB_CA_07", "q_AB_CA_09")
labels <- c("Marital status", "Student")
topic <- c("TEMA 1", "TEMA 2", "TEMA 2")
createExtendedDict(dict = Dict,
questions = questions,
disag = disag,
labels = labels,
topic = topic)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.