Skip to content

change timespan to delay between onset and sample #206

@avallecam

Description

@avallecam

Calculating delays is relevant to the theme.

The calculation of the time to a fixed date could be moved to a challenge.

Instead of

```{r}
sim_ebola_data <- cleanepi::timespan(
sim_ebola_data,
target_column = "date_sample",
end_date = lubridate::ymd("2025-01-03"),
span_unit = "years",
span_column_name = "years_since_collection",
span_remainder_unit = "months"
)
sim_ebola_data %>%
dplyr::select(case_id, date_sample, years_since_collection, remainder_months)
```

If done, needs three updates:

  • english
  • french
  • spanish

Metadata

Metadata

Assignees

No one assigned

    Labels

    hackathonTo solve or diagnosed in mini-hackathonpriority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions