RndTexExams (version 1.4.1)

rte.get.n.cases: Function to get number of cases (textual switches) based on question text

Description

Function to get number of cases (textual switches) based on question text

Usage

rte.get.n.cases(str.in)

Arguments

str.in

The full text of the question

Value

n.cases Number of cases (textual switches in string)

Examples

Run this code
# NOT RUN {
my.question <- 'My questions is ... @{ver1}|{ver2}@' ## two cases

n.cases <- rte.get.n.cases(my.question)

# }

Run the code above in your browser using DataCamp Workspace