collapse_time: Collapse time.

View source: R/utility_functions.r

collapse_timeR Documentation

Collapse time.

Description

Summarize a dataframe to different units of analysis. The 'time.var' is divided by 'time.factor' and turned into an integer.

Usage

collapse_time(data, time.var, time.factor, group.by, variables)

Arguments

data

The data to summarize.

time.var

Symbols identifying the time variable in data.

time.factor

A number that 'time.var' will be divided by.

group.by

A vector of symbols that identify the unit of analysis.

variables

A list of variables to apply special functions to.

Value

A summarized dataframe.


jacobaro/danalyze documentation built on Oct. 20, 2022, 8:09 a.m.