extract_score | R Documentation |
To extract score variables from QR_matrix
or mQR_matrix
objects.
extract_score(
x,
format_output = c("data.frame", "vector"),
weighted_score = FALSE
)
x |
a |
format_output |
string of characters indicating the output format: either a |
weighted_score |
logical indicating whether to extract the weighted score (if previously calculated) or the unweighted one. By default, the unweighted score is extracted. |
For QR_matrix
objects, the output is a vector or the object NULL
if no score was previously calculated.
For mQR_matrix
objects, it is a list of scores (NULL
elements or vectors).
Traduction française
## Not run:
QR <- extract_QR()
mQR <- mQR_matrix(QR, compute_score(QR))
extract_score(QR) # NULL
extract_score(mQR) # List whose first element is NULL
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.