Skip to contents

Counts the stars given up to the end of each of the 12 full months of the contributions card, from the time of each star.

Usage

star_months(d)

Arguments

d

The numbers of the card, from card_data().

Value

A data frame of date, the first day of each month, and value.

Examples

rghcard:::star_months(rghcard:::card_data(example_stats(), 30))
#>          date value
#> 1  2025-12-01    66
#> 2  2026-01-01    70
#> 3  2026-02-01    70
#> 4  2026-03-01    72
#> 5  2026-04-01    76
#> 6  2026-05-01    78
#> 7  2026-06-01    82
#> 8  2026-07-01    83
#> 9  2026-08-01    87
#> 10 2026-09-01    89
#> 11 2026-10-01    95
#> 12 2026-11-01   101