mirror of
https://github.com/msberends/AMR.git
synced 2025-07-11 05:41:53 +02:00
(v0.6.1.9044) first_isolate fix for species
This commit is contained in:
@ -26,6 +26,12 @@ test_that("age works", {
|
||||
reference = "2019-01-01"),
|
||||
c(39, 34, 29))
|
||||
|
||||
expect_equal(age(x = c("2019-01-01", "2019-04-01", "2019-07-01"),
|
||||
reference = "2019-09-01",
|
||||
exact = TRUE),
|
||||
c(0.6656393, 0.4191781, 0.1698630),
|
||||
tolerance = 0.000001)
|
||||
|
||||
expect_error(age(x = c("1980-01-01", "1985-01-01", "1990-01-01"),
|
||||
reference = c("2019-01-01", "2019-01-01")))
|
||||
|
||||
|
Reference in New Issue
Block a user