powered by
This function creates a text question for moodle in CLOZE format.
sa(txt, w = 100, caps = TRUE, pts = 1)
a character vector
character vector with possible answers
vector of weights
keep capital letters
points for answers
sa("Los Angeles") sa(c("Los Angeles", "San Francisco"), w=c(100, 80))
Run the code above in your browser using DataLab