tests/testthat/test-eof.R

test_that("the eof function works", {
	chla1 <- aggregate(sfbayChla, 1, mean, na.rm = TRUE)
	chla1 <- chla1[, 1:12]  # remove stations with missing years
	expect_false(identical(eof(chla1, 1, FALSE), eof(chla1, 1, TRUE)))
})

Try the wql package in your browser

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

wql documentation built on Oct. 25, 2026, 5:06 p.m.