tests/testthat/quickdf.r

context("quickdf")

test_that("make_names handles NAs", {
  x <- 1:3
  names(x) <- c("", "a", NA)
  expect_equal(make_names(x), c("X1", "a", NA))

})

Try the plyr package in your browser

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

plyr documentation built on Oct. 2, 2023, 9:07 a.m.