tests/testthat/testcut_ff.R

library(testthat)
library(ff)

context("cut")

test_that("Cut works for ff vectors",{
	x <- 1:10 
	xf <- ff(x)
	expect_identical( cut(x, breaks=3)
	                , cut(xf, breaks=3)[]
				    )
})

Try the ffbase package in your browser

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

ffbase documentation built on Feb. 27, 2021, 5:06 p.m.