Skip to contents

Class constructor and validator

Class constructor and validator functions

birthdays()
Constructor for creating a subclass of `<data.frame>` called `<birthdays>`
validate_birthdays()
Class validator for `<birthdays>`

A print method for <birthdays> class

print(<birthdays>)
Print method for `<birthdays>`

Getters, setters and subsetters

Functions to extract and modify birthdays class objects

`[`(<birthdays>)
Subset function for `<birthdays>` with downgrade-on-subsetting
`names<-`(<birthdays>)
Set names on `<birthdays>` class
`$<-`(<birthdays>)
Set accessor for `<birthdays>` class

Accessory methods

Functions to compute statistics from <birthdays> class

birthday_paradox()
Calculates any matching birthdays in the data and the probability of having a matching birthday (i.e. birthday paradox)
birthdays_per_month()
Count number of birthdays per month in each year from a `<birthdays>` object