cumulative_miles_by_id: Calculate cumulative miles for each individual by week

Description Usage Arguments Value Examples

View source: R/cumulative_miles_by_id.R

Description

For each individual, calculate the miles run that week and the cumulative miles run up to and including that week.

Usage

1
cumulative_miles_by_id(d, miles_per_card = 5)

Arguments

d

A data.frame containing all the card and day information.

miles_per_card

An integer specifying how many miles a card is worth.

Value

A data.frame with the cumulative miles for each individual by week.

Examples

1
2
3
4
## Not run: 
read_cards() %>% cumulative_miles_by_id

## End(Not run)

jarad/mileageClub documentation built on May 18, 2019, 3:46 p.m.