R/birthdays.R
validate_birthdays.Rd
Class validator for `<birthdays>`
validate_birthdays(x)
A `birthdays` object
Returns input invisibly, using for validation side-effects.
df = data.frame( name = c("kevin", "stacey"), birthday = c(as.Date("2001-01-01"), as.Date("2002-01-02")) ) birthdays <- birthdays(df) validate_birthdays(birthdays)