Data frame containing an age pyramid, with at least an age
and a value
column,
and eventually some other characteristics. If a male
column is present, it must be a logical vector,
if a group
column is present, it must be a vector of type character.
pyramid(x)
Given data frame augmented of the "age_pyramid" class.