add_indicator | R Documentation |
Function to add indicators in QR_matrix
objects.
add_indicator(x, indicator, variable_name, ...)
x |
a |
indicator |
a |
variable_name |
a string containing the name of the variables to add. |
... |
other parameters of the function |
The function add_indicator()
adds the chosen indicator to the values matrix of a quality report.
Therefore, because said indicator isn't added in the modalities matrix, it cannot be used to calculate a score (except for weighting).
Before using the added variable for score calculation, it will have to be coded with the function recode_indicator_num
.
The new indicator can be a vector
or a data.frame
. In both cases, its format must allow for pairing:
a vector
's elements must be named and these names must match those of the quality report (variable "series");
a data.frame
must contain a "series" column that matches with the quality report's series.
Traduction française
Other var QR_matrix manipulation:
QR_var_manipulation
,
recode_indicator_num()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.