@@ -378,8 +378,8 @@ test_that("basic ungrouped epi_slide computation produces expected output", {
378378
379379test_that(" epi_slide computation via formula can use ref_time_value" , {
380380 expected_output = dplyr :: bind_rows(
381- dplyr :: tibble(geo_value = " ak" , time_value = d + 1 : 5 , value = 11 : 15 , slide_value = as.double( d + 1 : 5 ) ),
382- dplyr :: tibble(geo_value = " al" , time_value = d + 1 : 5 , value = - (1 : 5 ), slide_value = as.double( d + 1 : 5 ) )
381+ dplyr :: tibble(geo_value = " ak" , time_value = d + 1 : 5 , value = 11 : 15 , slide_value = d + 1 : 5 ),
382+ dplyr :: tibble(geo_value = " al" , time_value = d + 1 : 5 , value = - (1 : 5 ), slide_value = d + 1 : 5 )
383383 ) %> %
384384 group_by(geo_value ) %> %
385385 as_epi_df(as_of = d + 6 )
@@ -404,8 +404,8 @@ test_that("epi_slide computation via formula can use ref_time_value", {
404404
405405 # Ungrouped with multiple geos
406406 expected_output = dplyr :: bind_rows(
407- dplyr :: tibble(geo_value = " ak" , time_value = d + 1 : 5 , value = 11 : 15 , slide_value = as.double( d + 1 : 5 ) ),
408- dplyr :: tibble(geo_value = " al" , time_value = d + 1 : 5 , value = - (1 : 5 ), slide_value = as.double( d + 1 : 5 ) )
407+ dplyr :: tibble(geo_value = " ak" , time_value = d + 1 : 5 , value = 11 : 15 , slide_value = d + 1 : 5 ),
408+ dplyr :: tibble(geo_value = " al" , time_value = d + 1 : 5 , value = - (1 : 5 ), slide_value = d + 1 : 5 )
409409 ) %> %
410410 as_epi_df(as_of = d + 6 ) %> %
411411 arrange(time_value )
@@ -419,8 +419,8 @@ test_that("epi_slide computation via formula can use ref_time_value", {
419419
420420test_that(" epi_slide computation via function can use ref_time_value" , {
421421 expected_output = dplyr :: bind_rows(
422- dplyr :: tibble(geo_value = " ak" , time_value = d + 1 : 5 , value = 11 : 15 , slide_value = as.double( d + 1 : 5 ) ),
423- dplyr :: tibble(geo_value = " al" , time_value = d + 1 : 5 , value = - (1 : 5 ), slide_value = as.double( d + 1 : 5 ) )
422+ dplyr :: tibble(geo_value = " ak" , time_value = d + 1 : 5 , value = 11 : 15 , slide_value = d + 1 : 5 ),
423+ dplyr :: tibble(geo_value = " al" , time_value = d + 1 : 5 , value = - (1 : 5 ), slide_value = d + 1 : 5 )
424424 ) %> %
425425 group_by(geo_value ) %> %
426426 as_epi_df(as_of = d + 6 )
@@ -435,8 +435,8 @@ test_that("epi_slide computation via function can use ref_time_value", {
435435test_that(" epi_slide computation via dots can use ref_time_value and group" , {
436436 # ref_time_value
437437 expected_output = dplyr :: bind_rows(
438- dplyr :: tibble(geo_value = " ak" , time_value = d + 1 : 5 , value = 11 : 15 , slide_value = as.double( d + 1 : 5 ) ),
439- dplyr :: tibble(geo_value = " al" , time_value = d + 1 : 5 , value = - (1 : 5 ), slide_value = as.double( d + 1 : 5 ) )
438+ dplyr :: tibble(geo_value = " ak" , time_value = d + 1 : 5 , value = 11 : 15 , slide_value = d + 1 : 5 ),
439+ dplyr :: tibble(geo_value = " al" , time_value = d + 1 : 5 , value = - (1 : 5 ), slide_value = d + 1 : 5 )
440440 ) %> %
441441 group_by(geo_value ) %> %
442442 as_epi_df(as_of = d + 6 )
@@ -484,8 +484,8 @@ test_that("epi_slide computation via dots can use ref_time_value and group", {
484484
485485 # Ungrouped with multiple geos
486486 expected_output = dplyr :: bind_rows(
487- dplyr :: tibble(geo_value = " ak" , time_value = d + 1 : 5 , value = 11 : 15 , slide_value = as.double( d + 1 : 5 ) ),
488- dplyr :: tibble(geo_value = " al" , time_value = d + 1 : 5 , value = - (1 : 5 ), slide_value = as.double( d + 1 : 5 ) )
487+ dplyr :: tibble(geo_value = " ak" , time_value = d + 1 : 5 , value = 11 : 15 , slide_value = d + 1 : 5 ),
488+ dplyr :: tibble(geo_value = " al" , time_value = d + 1 : 5 , value = - (1 : 5 ), slide_value = d + 1 : 5 )
489489 ) %> %
490490 as_epi_df(as_of = d + 6 ) %> %
491491 arrange(time_value )
0 commit comments