Learn R Programming

activAnalyzer (version 2.1.2)

compute_pro_score_dppac: Provide score for each question of the D-PPAC

Description

This function provides a score (from 0 to 4) in relation to the response to a given question from the D-PPAC questionnaire.

Usage

compute_pro_score_dppac(
  x,
  question = c("q1", "q2", "q3", "q4", "q5", "q6", "q7", "q8", "q9", "q10", "q11", "q12"),
  language = c("en", "fr")
)

Value

A numeric value.

Arguments

x

A character string that is the exact response to the considered question from the D-PPAC questionnaire.

question

A character value to identify the question to be considered when providing the score.

language

A character value for setting the language of the considered questionnaire.

Examples

Run this code
compute_pro_score_dppac(
    x = "Un petit peu (jusqu\u2019\u00e0 10 minutes au total)", 
    question = "q1",
    language = "fr"
    )
    

Run the code above in your browser using DataLab