cumulative_miles: Calculate cumulative miles

Description Usage Arguments Value Examples

View source: R/cumulative_miles.R

Description

Calculates the cumulative miles by week.

Usage

1
cumulative_miles(d, miles_per_card = 5)

Arguments

d

A data.frame contain all the cards with day information.

miles_per_card

An integer specifying how many miles a card is worth.

Value

A data.frame containing the number of miles run each week and the cumulative miles per week.

Examples

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

## End(Not run)

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