Skip to content

Implement function to grab the most recent data, sufficient for prediction #26

@dajmcdon

Description

@dajmcdon

For example, if we have max_lag = 14, then we would do something like:

x_latest <- x %>%
  filter(!is.na(case_rate), !is.na(death_rate)) %>%
  group_by(geo_value) %>%
  slice_tail(n = 15) # have lag 0,...,14, so need 15 for a complete case

The function should read the epi_recipe, perhaps after prep() or bake().

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions