Description Usage Arguments Details Examples
check whether all numbers in a likert scale are given
1 |
x |
a (non-empty) numeric vector of data values. |
The vector must contain integer numbers. It works by checking if the difference between items is equal to 1 (it gives you back 'Yes') or not (it gives you back 'No')
1 2 3 4 5 6 | # vector with all values ranging from 0 to 9 (all values == Yes)
x <- c(1,2,3,4,5,6,7,8,9,4,3,2,5,4,1,1,2,3,4,7,8,7,NA,1,2,3,5,4,0,6,7,5,4,5,6)
checkAllAnswers(x)
# vector with all values ranging from 0 to 9 (all values == No)
y <- c(0,2,3,5,6,7,8,9,8,5,6,7,5,3,2,0,3,5,6,7,6,NA)
checkAllAnswers(y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.