Skip to content

Commit

Permalink
select columns after timespan
Browse files Browse the repository at this point in the history
  • Loading branch information
avallecam authored Sep 30, 2024
1 parent 0e8bbfa commit 1b53f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion episodes/clean-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ sim_ebola_data <- cleanepi::timespan(
)
sim_ebola_data %>%
dplyr::glimpse()
dplyr::select(case_id, date_sample, time_since_sampling_date, remainder_months)
```

After executing the function `cleanepi::timespan()`, two new columns named `time_since_sampling_date` and `remainder_months` are added to the **sim_ebola_data** dataset, containing the calculated time elapsed since the date of sampling for each case, measured in years, and the remaining time measured in months.
Expand Down

0 comments on commit 1b53f17

Please sign in to comment.