add_total_pool_to_data: add_total_pool_to_data

View source: R/charting.R

add_total_pool_to_dataR Documentation

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)

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.

Value

a data.frame with additional observations.


linea documentation built on Sept. 15, 2022, 9:06 a.m.