tests/testthat/test-get-ipeds-unitid.R

test_that("get_ipeds_unitid returns a character, regardless of initial data type",{
  expect_type(get_ipeds_unitid(data.frame(UNITID = 123456)), 'character')
  expect_type(get_ipeds_unitid(data.frame(UNITID = '123456')), 'character')
})

Try the IPEDSuploadables package in your browser

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

IPEDSuploadables documentation built on April 3, 2025, 9:36 p.m.