inst/tinytest/test_describe.R

## Read fake data
artefacts <- read.csv(system.file("tinytest", "fake.csv", package = "arkhe"))

# Sparsity =====================================================================
expect_equal(sparsity(artefacts, count = TRUE), 20)
expect_equal(sparsity(artefacts, count = FALSE), 20/250)

# Describe =====================================================================
expect_stdout(describe(artefacts))

Try the arkhe package in your browser

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

arkhe documentation built on April 4, 2025, 2:34 a.m.