Add an aggregated set of observations to a data.frame
add_total_pool_to_data(data, pool_var, id_var)a data.frame with additional observations.
A data.frame containing the pool and id variables provided.
A string representing the variable name of the pool variable.
A string representing the variable name of the id variable.
Add an aggregated set of observations to a data.frame based on a "pool" variable provided.