Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


linea (version 0.1.1)

add_total_pool_to_data: add_total_pool_to_data

Description

Add an aggregated set of observations to a data.frame

Usage

add_total_pool_to_data(data, pool_var, id_var)

Value

a data.frame with additional observations.

Arguments

data

A data.frame containing the pool and id variables provided.

pool_var

A string representing the variable name of the pool variable.

id_var

A string representing the variable name of the id variable.

Details

Add an aggregated set of observations to a data.frame based on a "pool" variable provided.