Skip to contents

Count number of birthdays per month in each year from a `<birthdays>` object

Usage

birthdays_per_month(x, ...)

# S3 method for birthdays
birthdays_per_month(x, ...)

Arguments

x

An `birthdays` object

...

Arguments to be passed on

Value

A `birthdays` object

Examples

df <- data.frame(
  name = c("kevin", "stacey"),
  birthday = c(as.Date("2001-01-01"), as.Date("2002-01-02"))
)
birthdays <- birthdays(df)
birthdays_per_month(birthdays)
#> Jan 
#>   2