Description Usage Arguments Value Examples
View source: R/cumulative_miles_by_id.R
For each individual, calculate the miles run that week and the cumulative miles run up to and including that week.
1 | cumulative_miles_by_id(d, miles_per_card = 5)
|
d |
A |
miles_per_card |
An integer specifying how many miles a card is worth. |
A data.frame
with the cumulative miles for each individual by week.
1 2 3 4 | ## Not run:
read_cards() %>% cumulative_miles_by_id
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.