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 Feb. 3, 2026, 1:06 a.m.