library (surveyreader)
library(testthat)
context("Wrapper for difficulty of paying bills Eurobarometer trend question.")
test_that("correct conversion takes place", {
expect_equal(rescale_difficulty(column = c("Most of the time", "From time to time",
"Almost never/never")),
c(2,1,0)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.