library (surveyreader)
library(testthat)
context("Wrapper for Eurobarometer alphanumeric coding in English")
test_that("correct conversion takes place", {
expect_equal(rescale_alphanumeric_en (column =
c("One", "Twenty","twenty-one", "sEven", "NA"),
na_labels = "default"),
c(1,20,21,7,NA)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.