tests/testthat/test-organize_labels.R

context("test-organize_labels")

test_that("labels hogar", {
  df <- organize_labels(toybase_hogar_2016_04, type = "hogar")
  regiones <- expss::val_lab(df$REGION)
  expect_equal(!is.null(regiones), TRUE)
})


test_that("labels individual", {
  df <- organize_labels(toybase_individual_2016_03, type = "individual")
  regiones <- expss::val_lab(df$REGION)
  expect_equal(!is.null(regiones), TRUE)
})

Try the eph package in your browser

Any scripts or data that you put into this service are public.

eph documentation built on June 23, 2024, 5:06 p.m.